Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get the issue ID from the attachment ID Edited

Hi guys,

I am trying to integrate Zendesk and Jira using Azure Functions to synchronise tickets and attachments between the two systems. By having Zendesk ticket ID save as a custom field in Jira and vice versa, I can transfer tickets and issues back and forth.

I have setup webhooks in Jira to capture the attachment created event. Now, when I look at the payload, it only contains the attachment ID but not the issue ID. Without knowing the issue ID, I cannot transfer the attachment across Zendesk because I do not have the reference ticket. Does anyone know how to get the issue ID from the attachment ID?

Attachment created payload from Jira's webhook:

"timestamp": 1606955550592,
"webhookEvent": "attachment_created",
"attachment": {
"self": "some url",
"id": "ticket id",
"filename": "Screenshot 2020-10-26 093937.png",
"author": {
"self": "some url",
"accountId": "account id",
"displayName": "some name",
"active": true,
"timeZone": "Australia/Sydney",
"accountType": "atlassian"
"created": "2020-12-03T11:32:30.592+1100",
"size": 83695,
"mimeType": "image/png",
"content": "Screenshot+2020-10-26+093937.png",
"thumbnail": "Screenshot+2020-10-26+093937.png"

Thanks in advance.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,184 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you