Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-71549

Adding an Attachment to an Issue Triggers all Webhooks with the Attachment Condition Selected

    XMLWordPrintable

Details

    Description

      Summary

      The webhooks are currently not correctly honoring the conditions with attachments. If the user creates two webhooks (with each webhook targeting its own specific project) and both webhooks have the attachment conditions checked, attaching an attachment to any issuetype will trigger both webhooks regardless of the project that the issue was created in.

      Steps to Reproduce

      1. Create two webhooks targeting different projects in the JQL query conditions
        1. For example: 1 webhook should have JQL query: project = ABC, the other webhook will have: project = DEF
      2. Both webhooks should have conditions selected:
        1. Attachments:"created" and "deleted" selected.
        2. Issue: "created" and "updated" selected.
        3. Comment: "created" and "updated" selected
      3. Both webhooks should be enabled
      4. Go to one of your projects specific in your webhooks and create an issue. Attach an attachment
      5. Notice that once an attachment is attached, both webhooks will trigger even when the attachment is not on that specific project

      Expected Result

      When attaching an attachment, the webhook in which the issue/attachment resides should only be the one triggering. All other webhooks should not trigger according to its conditions.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gsenna Gabriel Senna
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: