Forums

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

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