Skip to main content
Skip table of contents

Creating a webhook via Jira automation

Webhooks are only triggered when a user selects a reason. If a user only provides a sentiment, the webhook will not be triggered.

You need to be a Jira administrator or a project administrator to perform these steps.

  1. In Jira, select a JSM project.

  2. Click Project Settings > Automation > click the Create rule button to start creating the automation rule.

  3. In the Create a Trigger section, search and select the Incoming webhook option.

    jira-1.png
  4. Click Copy URL to copy the automation webhook URL.

  5. Next, select the “No issues from the webhook” option from the Execute this automation rule with section. Then, click Save.

  6. For the New component section, select THEN: Add an action.

  7. Search and select the Create issue option.

    jira-2.png
  8. Enter the following for the Create issue section:

    1. Project - select a project.

    2. Issue type - select an issue type.

    3. Summary - enter the following in the Summary field:

      CODE
      {{webhookData.summary}}
    4. Description - enter the following in the Description field:

      CODE
      Feedback for {{webhookData.title}}: {{webhookData.link}}
      Sentiment: {{webhookData.sentiment.emoji}} {{webhookData.sentiment.label}}
      Reason: {{webhookData.reason.label}}
      Created at: {{webhookData.createdAt}} by {{webhookData.reporter}}
      Page version: {{webhookData.version}}
  9. Choose other fields to set up if you want to. Then, click Save.

  10. Name your automation and set the permission access to edit the rule. Next, click Turn it on to activate the automation.

  11. In Confluence, go to any space > click Space Settings > under Integrations, click Page Feedback Webhooks.

  12. Click Add Webhook, enter a webhook into the Label field, and paste the copied link from Step 4 into the Webhook URL field. Then, click Save.

  13. You have successfully created an endpoint from your Confluence space to your Jira project.

  14. An issue will be created in your Jira group when a user provides feedback in a Confluence space.

    jira-3.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.