Sending an issue link webhook event with a variable does not append the variable to the webhook URL, causing the payload to fail to send.

XMLWordPrintable

    • Type: Bug
    • Resolution: Not a bug
    • Priority: Low
    • None
    • Affects Version/s: 9.12.5, 10.3.5
    • Component/s: Webhooks
    • 9.12
    • 1
    • Severity 3 - Minor
    • 1
    • Hide
      Atlassian Update – 05 Jun 2025

      Hi everyone,

      Thank you for bringing this issue to our attention.

      The behavior of webhooks is designed this way because the set of variables available for URL substitution varies for each event category (such as Issues, Users, etc.). We understand that the current UI, which highlights these variables, might be confusing, and we plan to address this in a separate issue.

      Detailed explanation regarding variables can be found here. Thank you again for providing valuable feedback to our team! I will be marking it closed for now.

      Best regards

      Tomasz Ziółkowski
      Principal Software Engineer, Jira Platform

      Show
      Atlassian Update – 05 Jun 2025 Hi everyone, Thank you for bringing this issue to our attention. The behavior of webhooks is designed this way because the set of variables available for URL substitution varies for each event category (such as Issues, Users, etc.). We understand that the current UI, which highlights these variables, might be confusing, and we plan to address this in a separate issue . Detailed explanation regarding variables can be found here . Thank you again for providing valuable feedback to our team! I will be marking it closed for now. Best regards Tomasz Ziółkowski Principal Software Engineer, Jira Platform

      Issue Summary

      When using a variable such as ${issue.key} in a webhook endpoint, the issue link events are triggered without the variable being resolved.

      For example, a webhook triggered by ABC-123, with a URL of:

      https://webhook-tester/${issue.key} resolves to https://webhook-tester/ABC-123

      However, this not happening.

      Example:

      Issue Link Webhook Failed

      Posting to web hook at 'https://webhook-tester/?user_id=admin&user_key=admin', body is: {"timestamp":1744814291867,"webhookEvent":"issuelink_created","issueLink":
      .....
      Error - 405 when posting to web hook at 'https://webhook-tester/'

      Comment Add Webhook Succeeded

      Posting to web hook at 'https://webhook-tester/ABC-123?user_id=admin&user_key=admin', body is: {"timestamp":1744814079460,"webhookEvent":"comment_created","comment"...
      .....
      WebHook successfully sent

      Issue link payload is being sent to endpoint https://webhook-tester/?user_id=admin&user_key=admin' instead of https://webhook-tester/abc-123?user_id=admin&user_key=admin'

      Steps to Reproduce

      1. Create an issue link created/updated/deleted webhook with a webhook URL containing a variable such as ${issue.key}. 
      2. Trigger the webhook events
      3. Configure and repeat the same steps for another webhook event type such as "comment added"

      Expected Results

      Webhooks are delivered.

      Actual Results

      Issue link webhook event fails to deliver due to incorrect endpoint.

      Workaround

      Automation for Jira can send a payload for issue link events to a dynamic URL using smart values. Example with issue key:

        1. image-2025-04-16-15-03-57-152.png
          121 kB
          Tim Tutten
        2. Zrzut ekranu 2025-05-19 o 15.21.26.png
          11 kB
          Tomasz Ziółkowski

            Assignee:
            Unassigned
            Reporter:
            Tim Tutten
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: