I need help with downloading Jira attachment files with Python
Hi @Mustafa Mousa -
Can you provide a little more context?
Is this part of some kind of build script/automation? Do you want all the attachments if the script is given the input of a single issue key? Or are you trying to do a bulk download of attachments for the whole server or a single project?
And have you already tried writing a script and are running into issues?
Here's a good example using the python requests module (not any Jira-specific modules):
http://migueleonardortiz.com.ar/python/download-jira-attachments-with-python/1334
And while this tutorial from @Ravi Sagar _Sparxsys_ is Cloud-specific, the general idea also applies to Jira Server. You could get the list of attachments from Jira's REST API by hitting a URL like https://yourjiraserver/rest/api/2/issue/ISSUE-24090 and then parse the JSON to find attachments and get the URLs for each attachment for downloading.
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.