Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am new to Python and looking for a solution to upload my Jira issue Excel file stored in my local drive to my OneDrive location. I was able to download the issue list from Jira to my local drive using the below script. However, I am unable to find a script to upload the file to my OneDrive location.

What I have tried:

Python
import requests
url = 'https://myurl'
r = requests.get(url, auth=('jiraadmin@xxi.com', 'xxxx'))
# open('MyJiraIssues.csv', 'wb').write(r.content)
Posted
Updated 1-Feb-22 7:14am
v2

1 solution

You can upload through Python SDK. Follow the step-by-step link for your requirement:
Python 3 Script to Upload Files & Images to Microsoft OneDrive API Storage Full Project For Beginners - Coding Shiksha[^]
 
Share this answer
 
Comments
Vipin Sumathi 31-Jan-22 16:40pm    
I don't understand the
'client_id':'XXXXX',
'client_secret':'XXXXX'

What are these?
M Imran Ansari 31-Jan-22 23:02pm    
client_id and client_secret are your credential to get authentication oauth2/token.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900