Forums

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

get attachment content and key on the same row

Elizabeth Johnson
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!
April 20, 2022

I am trying to download attachments from the cloud for all proejcts/issues.  When I call the Rest API it returns an array within an array so I get

contentURL filename
{https://atlassian.net/rest/api/2/attachment/content/10004, https://atlassian.net/rest/api/2/attachment/content/10003} {api.docx, excel.xlsx}

How do I parse through to get each attachment content and filename in one row.  I am using PowerShell and tried for loop and for each-object and it returns all content then all filename.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events