Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-62195

Variable Substitution in webhooks URL isn't working for "Worklog" related events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 7.0.10, 7.1.9, 8.20.0, 9.4.0, 9.4.3, 8.20.19
    • Webhooks

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Summary

      When a webhook with Variable Substitution is configured, the variable substitution doesn't work when worklog events are fired. It works fine when issue related or comments related events are fired

      Steps to Reproduce

      1. Create an webhook as follows
        • Webhooks URL: append any variable substitution to a valid URL
          • In my case, I used Requestb.in with the project.id variable
            http://requestb.in/r6eynvr6?${project.id}
        • Issue related events
          • Issue: created, updated
          • Comment: created, updated
          • Worlog: created,updated
      2. Log work on an issue which will trigger the webhooks.

      Expected Results

      1. The webhooks will include the variable when posting it

      Actual Results

      1. The webhooks doesn't include any variable for this event

      Notes

      1. It works fine when updating the issue or commenting on an issue
      2. Doesn't affect JIRA 6.4.14

      Workaround

      Instead of using Worklog events, use the Issue: Worklog changed event

        1. requestbin1.png
          requestbin1.png
          76 kB
        2. requestbin2.png
          requestbin2.png
          78 kB
        3. webhooks.png
          webhooks.png
          27 kB

            Unassigned Unassigned
            ywoo Yit Wei
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: