The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue updated event doesn't fire when attacments added

aas
Contributor
January 19, 2022

I have custom mail handler which creates Jira issue and then makes an attachment from message and add it to that issue 

attachmentManager.createAttachment(File, String, String, User, Issue);


It works I have new issue with attachment.
Then I try to make webhook with Issue Related Events 
image.png
But webhooks works only on issue created and sends json with empty attachments
{"webhookevent":"jira:issue_created" "id":"123","key":"ABC", "fields":{"project"{"id", "key", "name"}, "attachment":[]}}

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Brant Schroeder
Community Champion
May 3, 2022

@aas You would just need to add the attachment as part of a comment and that will fire off the event.