Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to bulk upload attachments to multiple issues

Sameer Mohamed May 31, 2024

Hi Everyone,

I have seen multiple videos in YouTube for uploading bulk attachments in a Jira ticket using a python script. But i could not find anything on how to upload multiple attachments in multiple tickets using a csv file.

Similar to this: Solved: Jira CLI -- how to bulk upload attachments? (atlassian.com)

Can someone help me with a script as I'm not aware of coding. Please guide me on this process.

 

1 answer

1 vote
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 31, 2024

Hi @Sameer Mohamed 

I guess you can achieve this by using built in CSV import feature. 

If you would look at this documentation

https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-a-csv-file/

you would notice this part:

You can attach files to issues created from your CSV file. To do this, specify the URL of your attachment in an Attachments column within your CSV file.

Assignee, Summary, Description, Attachment, Comment
bob@example.com, "Issue demonstrating the CSV attachment import", "Please check the attached image below.", "https://jira-server:8080/secure/attachment/image-name.png", "01/01/2012 10:10;<your email address or Atlassian account ID>; This comment works"
bob@example.com, "CSV attachment import with timestamp,author and filename", "Please check the attached image below.", "01/01/2012 13:10;<Atlassian account ID>;image.png;file://image-name.png", "01/01/2012 10:10;<your email address or Atlassian account ID>; This comment works"

Note that URLs for attachments support the HTTP and HTTPS protocols and can be located anywhere that your Jira Cloud site can access.

So this is definitively possible and not requires scripting (only preparing CSV file). If you want to update existing issues (add an attachment later) then you have to add additional column (for key to be recognized by Jira) - that is also described in the documentation above.

Sameer Mohamed May 31, 2024

@Mirek 

My request is to upload the attachments from local device by pasting the path in CSV file with Issue key.

If we use above documentation, then do we have to upload the invoices anywhere in Jira Cloud like Confluence etc?

Or can we paste Google Drive link?

Suggest an answer

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

Atlassian Community Events