Versions Compared

Key

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

Status
colourYellow
titleIn Progress

Table of Contents

Incoming webhook is a way of executing an action in JEMHCloud by triggering a secured URL. This will allow you to integrate JEMHCloud with a third-party system. The allowed actions are:

  • Send email notification for an issue. 

  • Delete an issue's external attachments. 

  • Send SMS Notification for an issue (TODO, does it make sense?)

  • Send Slack Notification for an issue (TODO, does it make sense?)

Once the webhook is set, the action can be executed by calling the secured URL.

...

The request must contain the issue key. The issue key can be provided in a query parameter or in the request body. Examples:

  • ?issueKey=ABC-123

  • {"issue": {"key":"ABC-123"}}

  • {"issueKey": "ABC-123"}

  • {"key":"ABC-123"}

The request should contain the account id of the user that performed the action. The accountId can be provided in a query parameter or in the request body. Examples:

  • ?accountId=a-b-c-d

  • {"user": {"accountId":"a-b-c-d"}

  • {"accountId": "a-b-c-d"}

Let's see a use case that uses a great Jira App called Automation for Jira. The Automation for Jira documentation can be found here.

...

Install Automation for Jira

  1. Go to your Jira → Jira Settings → App → Find New Apps

  2. Search for Jira Automation Lite and install it 

...

  1. Image Added

Once you have the App installed, let's create a new incoming webhook action in JEMHCloud

Create the Incoming Webhook action in JEMHCloud

  1. Go to JEMHCloud → Messages → Message Outbounds. Confirm that you have created a mail server connection

...

  1. Image Added
  2. Go to JEMHCloud → Messages → Incoming Webhooks

  3. Enter a name and leave the Action to Send Notification and the Post method

  4. Enter the Message you want to add to the email notification body.

...

  1. Image Added
  2. Add the recipients, in this case, the team lead and assignee.

...

  1. Image Added
  2. Submit. The created Incoming Webhook will appear on the list.

  3. Click on "Show URL" and select and copy the full URL. Automation for Jira will call that URL when executing an Automation Webhook action.

...

  1. Image Added

You have created the JEMHCloud Incoming Webhook. If you call that URL providing the right Issue Key, JEMHCloud will send the notification to the configured recipients. The URL caller can be Automation for Jira or any other system, program or script that can hit an URL.

...

Now let's create the automation Rule. This rule will run every weekday at 7 AM and it will call the JEMHCloud Incoming Webhook URL we have just created.

  1. Go to your project → Project Settings → Create Rule 

...

  1. Image Added
  2. Select the Scheduled trigger

...

  1. Image Added
  2. Enter the Cron expression 0 0 7 ? * MON-FRI

  3. Enter the JQL rule status = "In Progress"

  4. Uncheck the last checkbox so all "In Progress" issues are reminded, not only the changed one

...

  1. Image Added
  2. Add a "Send web request" action

...

  1. Image Added
  2. Paste the JEMHCloud Incoming Webhook URL and enter the custom data template. The resolved issue key will be posted in the HTTP post request.

...

  1. Image Added
  2. Enter the Rule name and Turn it on

...

  1. Image Added
  2. To test the rule and the JEMHCloud integration, click on the "Run Rule". Revisit the Audit Logs to see if there is any problem.

...

  1. Image Added
  2. Go back to JEMHCloud  → Auditing → Event. The Incoming Webhook will be processed like any other issue and post function event. The email notification configuration is the one entered in the Incoming Webhook

...

  1. Image Added
  2. Go to the Cog icon in the event row, click on the View Report 

...

  1. Image Added
  2. The email notifications configured in Incoming Webhook should have been sent. This is how the email looks:

...

  1. Image Added

We are done! Now assignees will get notifications every morning about their current work. There is a big list of possible triggers you can use in Automation for Jira so you can customize when you want to notify your users.

Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@43352ed
sortmodified
showSpacefalse

...

reversetrue
typepage
cqllabel in ( "incoming-webhook" , "jemhc" ) and type = "page" and space = "JEMHC"
labelsjemhc incoming-webhook


Page Properties
hiddentrue


Related issues