You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I tried to download the excel file which is attached to jira issue type in python using requests am getting in the html format. please help me how to download the excel file which is attached to jira issue type and save it my local location. i tried like this it is saving it has html file. i need the original excel file which is attached to the jira issue.
r = requests.get("jiraurl", headers=headers, verify=False)
request = r.json()
excel_url = request['fields']['attachment'][0]['content'])
#output = when i run the above script am getting the url for the excel sheet were it is located,
so i tried like this after getting the excel url am doing requests.get again for the excel url
r1 = requests.get(excel_url, allow_redirects=True, verify=False)
open('file.xlsx', 'wb').write(r1.content)
when i open the file it is in the html malformed format. please help me how to download the original excel file from python from a jira issue type.
facing same issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
not very helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.