Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Please visit out API javadoc page: http://ppl-docs.s3-website-us-east-1.amazonaws.com/JEMH/3.3.50/com/javahollic/jira/emh/api/export/beans/IJEMHInboundMailProcessingWebhook.htmlSetup for the interface definition.

JSON example

Info

Processing outcomes such as Forward, Dropped, Successful etc… do not affect the prevent the webhook call as the webhook is independent from the event listener.

Successful Outcome

Code Block
languagejson
{
    "auditEntryLink": "http://localhost:8080/secure/admin/jemh/JEMHAuditing.jspa?reportId=111",
    "emailSenderAddress": "customer@localhost",
    "processedOutcome": "canHandle",
    "catchEmailAddress": "changeme@thiswontwork.com",
    "auditEventId": 111,
    "processedSuccessfully": true,
    "profileId": 1,
    "createdIssueKeys":
    [
        "JSMIT-42"
    ],
    "emailSubject": "test This is a starting email template, update as required",
    "timestamp": "2021-08-24 16:44:54.397"
}

Unsuccessful Outcome

Code Block
languagejson
{
    "auditEntryLink": "http://localhost:2990/jira/secure/admin/jemh/JEMHAuditing.jspa?reportId=20",
    "auditEventId": 20,
    "catchEmailAddress": "changeme@thiswontwork.com",
    "emailSenderAddress": "mailer-daemon@googlemail.com",
    "emailSubject": "This is a starting email template, update as required",
    "filterAction": "drop",
    "filterName": "Whitelisting/Blacklisting filter",
    "filterReason": "Silently dropping (no forward) blacklisted email [type=Profile Blacklist/Whitelist, detail=Email Sender 'mailer-daemon@googlemail.com' was blacklisted due to clause: mailer-daemon@googlemail.com] : from [mailer-daemon@googlemail.com], subject: This is a starting email template, update as required, sent: Sun Jun 19 06:42:26 BST 2011 BlacklistHandling is DROP, returning 'drop' to delete the mail from the queue.",
    "processedOutcome": "drop",
    "processedSuccessfully": true,
    "profileId": 20,
    "timestamp": "2021-08-24 16:51:57.168"
}

Requirements

Webhook Endpoint Requirements

...

Hover over the invalid webhook lozenges to see further information on the cause of invalid webhook.

...

You will one One of the following reasons will pop up:

Tracking Webhook outcomes via Auditing report

...

  1. Failed due to Allowlist validation

  2. Failed due to failed URI syntax validation

  3. Failed due to general IO Exceptions. Commonly due to endpoint failing to response within 10 seconds as per https://thepluginpeople.atlassian.net/wiki/spaces/JEMH/pages/3296264195/Use+Webhooks#Webhook-Endpoint-Requirements or endpoint connection closed early.neccessary