Configure a webhook to subscribe to Jira with a ServiceNow callback URL.

Before you begin

  • Request an Integration Hub subscription
  • Activate the Jira spoke
  • Role required: admin

Create a token

Create a token to embed in the Jira webhook URL.

Before you begin

Role required: admin

Procedure

  1. In the navigation filter, enter token_verification.list.
    The system displays records in the Token Verifications table.
  2. Click New.
  3. On the form, fill the fields.
    Table 1. Token Verification form
    Field Description
    Name Unique name to identify the token. For example, Jira token.
    Description Description of the token.
    Token Authentication token. This token is encrypted and embedded in the URL.

Result

The token is created to be embedded in the Jira webhook URL.

Register a Jira webhook in ServiceNow

Register a Jira webhook in ServiceNow to notify the ServiceNow app when certain events occur in Jira.

Before you begin

Role required: admin

Procedure

  1. Navigate to All > Jira Webhooks > Jira Webhook Registries.
  2. Click New.
  3. On the form, fill in the fields.
  4. Right-click the form header and click Save.
  5. Click Callback URL.
    The system displays the webhook callback URL.
  6. Copy and record the webhook callback URL.

Result

The Jira webhook is registered in your ServiceNow instance.

Add a callback URL in Jira

Provide a webhook callback URL in yourJira Atlassian account to create a webhook.

Before you begin

Role required: admin

Procedure

  1. Log in to your Jira Atlassian account.
  2. Create a webhook in your Atlassian account.
  3. Enter the webhook callback URL in the URL field.
    See the Atlassian Developer portal documentation for instructions on creating a webhook.

Result

The callback URL is added in your Jira Atlassian account. You can create routing policies and subflows as per your requirement. See Customize a bi-directional webhook for information regarding the creation of new routing policies and subflows.

Customize a bi-directional webhook

Create a webhook routing policy and subflow according to your requirement.

Before you begin

Role required: admin

About this task

The default routing policy in the Jira WebHook Routing Policies module triggers the Process Jira Webhooks subflow and notifies the ServiceNow app when certain events occur in Jira. See Jira Spoke for information about the fields that the default routing policy and subflows support. To use any other fields in your custom subflow and customize conditions in the routing policy, perform these steps.

Procedure

  1. Navigate to All > Flow Designer > Designer.
  2. Select Subflows.
  3. Create a copy of the default subflow, Process Jira Webhooks.
  4. Customize the subflow according to your requirement and publish it.
    See Building subflows for more information about creating and using subflows and Jira Spoke for information about the fields that the default routing policy and subflows support.
  5. Navigate to Jira Webhooks > Jira WebHook Routing Policies.
  6. Select New.
  7. On the form, fill in the fields.
  8. Select Submit.
    Note: These routing policies are saved in the Decision tables. Users are cautioned against directly updating or modifying data in these tables.

Result

The routing policy and subflow are created.