Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

How can i get issue id from attachment id

Sushmitha S Patted
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2022

From attacment id or filename i want to get issue id or key to which the attachment is attached to.Can it be possible with scriptrunner? If yes,how?

 

1 answer

0 votes
Matt Doar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 3, 2022

I think the AttachmentManager.getAttachment() returns an Attachment object that contains the issue object information

Deiser Service Team
Contributor
May 23, 2023

The tags are talking about scriptrunner in cloud.

The attachment events don't give the issue where the attachment was added to, so we can't track where an specific attachment was added.

Suggest an answer

Log in or Sign up to answer