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

Include attachment metadata on issue updated webhook events

    XMLWordPrintable

Details

    • 10
    • 13
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Scenario

      We are using Jira Cloud API for our integration at Guidewire (https://developer.atlassian.com/cloud/jira/platform/rest/). We have an issue with the attachments uploaded to a Jira issue. The attachments uploaded to a Jira issue generate three webhook events - issueupdated, commentcreated (in the case of public attachment) and attachmentcreated. In our implementation scenario, we are integrating with Salesforce and the requirement is to only bring the public attachments from Jira to Salesforce. As we understand from the webhook behavior, if an attachment is public, it will have a corresponding public comment created.

      Problem

      The three webhook events are independent of each other and are not correlated.
      The commentcreated webhook event has only the attachment name and no other attachment metadata. So I cannot get the attachment id from commentcreated webhook to perform a subsequent get attachment details API call to get the attachment link.

      The attachmentcreated webhook event has only attachment details like id and link but does not have visibility details. It does not have the comment id to which it is associated and hence we are not able to get the visibility of the attachment based on which comment it is associated with.

      The issueupdated webhook event does not provide any attachment detail or comment detail or any other detail correlating the attachment and the comment to which it is associated with.

      Suggested Resolution

      Include all the attachment details to the webhook events, such as comment id, attachment id, comment visibility and etc...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              esantos@atlassian.com Eduardo Santos
              Votes:
              29 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated: