Forums

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

How can I download Bugs with all the attachments

Rahul Bhatia
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!
March 31, 2020

I am running following Query and exporting it to word. 

What I need is along with Bug details is attachments (Screen shots, logs) whatever is attached along with defect to be downloaded . How can I achieve that?

 

project=ABCD AND issuetype=Bug

1 answer

0 votes
Aditya Sastry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 1, 2020

You can do it through API's -

First get attachment details for an issue is : https://jira.com/rest/api/2/issue/<issue_id-1>?fields=attachment

API RESPONSE:

{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"262742","self":"https://jira.com/rest/api/2/issue/262742","key":"<issues id-1>","fields":{"attachment":[{"self":"https://jira.com/rest/api/2/attachment/20823","id":"20823","filename":"vulns.csv","author":{"self":"https://jira.com/rest/api/2/user?username=rjayatee","name":"rjayatee","key":"rjayatee","emailAddress":"rjayatee@.com","avatarUrls":{"48x48":"https://jira.com/secure/useravatar?avatarId=10341","24x24":"https://jira.com/secure/useravatar?size=small&avatarId=10341","16x16":"https://jira.com/secure/useravatar?size=xsmall&avatarId=10341","32x32":"https://jira.com/secure/useravatar?size=medium&avatarId=10341"},"displayName":"Rao, Jayateertha","active":true,"timeZone":"America/New_York"},"created":"2020-02-12T02:44:52.563-0500","size":2205,"mimeType":"text/csv","content":"https://jira.com/secure/attachment/20823/vulns.csv"}]}}

Use content API response URL to get the attachment.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events