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 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