Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
10
-
13
-
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
- is related to
-
JRACLOUD-78388 Mapping missing between issue comments and the attachments.
- Gathering Interest
- split to
-
JRACLOUD-80276 Include issue ID in attachment_created webhook body
- Gathering Interest