Forums

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

Jira Software - importing attachments from JSON

Tom Fanning June 28, 2018

Ref Importing data from JSON into Jira Cloud

I see the Attachment object requires a URL

When we upload JSON containing a URL, does this mean the Jira import wizard will go and fetch the attachment from that URL, and store it in Jira?

Or does it work some other way?

The documentation could be clearer.

Thanks

Tom

1 answer

0 votes
Alexey Matveev
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.
June 28, 2018

Hello,

I ve never tried to import from JSON. But I guess, it will try to download the file from the url, which you specified. You can check it.

Ravi Varma
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.
June 28, 2018

Hi @Tom Fanning and @Alexey Matveev,

 

I imported the attachment using the URL specified in the JSON file as documented in importing-data-from-json.

 

It works.

 

Regards,

Ravi Varma

Tom Fanning June 28, 2018

Hi @Ravi Varma

Can you confirm - you uploaded the files somewhere, e.g. S3, then put a URL to that location in the JSON?

Thanks.

Ravi Varma
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.
June 28, 2018

Hi @Tom Fanning,

As @Alexey Matveev mentioned, if the file is accessible using a URL, JIRA will access the file and attach it to the JIRA issue. 

As part of my testing, I used the URL - https://theaviationist.com/wp-content/uploads/2015/06/F-22-Raptor-aar.jpg. JIRA has attached the image represented by this URL as an attachment to the JIRA issue.

Let me know if you are looking at some other solution wherein you want to attach a local file. 

Regards,

Ravi Varma

Suggest an answer

Log in or Sign up to answer