Jira Service Management Comments & Attachments to Download

Hi everyone.

I have an interesting goal and I could use some ideas: copy new public JSM comments on a ticket and any attachments saved with the comment, to another system.

I’ve tried automations with limited success using a POST custom JSON payload. There are no smart values with comment attachments combined. Issue data sends all attachments which I don’t want since the payload doesn’t link them to a comment.

A webhook seems better with the Comment Created event. But there is little useful data about the attachment with the comment, which is in the Body. It includes a filename and size, no UID.

Adding to the webhook Attachment Created, with Comment Created, the scenario receives 2 operations. It’s weird, but I’m hoping to be able to do something with this.

My scenario only has the Jira Watch Issues module, so far.

How can I process the data from both operations coming in at different times together?