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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.