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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.