![]() While the Jira REST API currently accepts your Atlassian account password in basic auth requests, we strongly recommend that you use API tokens instead. Support for passwords in REST API basic authentication is deprecated and will be removed in the future. Using passwords with Jira REST API basic authentication More information below: Basic auth for REST APIs: Note: JIRA API authentication with password is not working in 2018 as password is deprecated. How to work with JIRA access tokens: Atlassian API tokens In order to get access token you need to visit: Manage your Atlassian account - login and request a token. your_token_access_key - your private access token.R = requests.get('"myproject"&maxResults=20', auth=(' ', 'your_token_access_key')) If you want to request information from private projects you can with google account then you can try second option which is: import requests But using direct request and JIRA access token I was able to request information. I wasn't able to log into private project with google accound by using jira module. Python JIRA Library is the easiest way to automate JIRA.# Find all comments made by Atlassians on this issue.Ītl_comments = [comment for comment in Īs you can see this code is working for public projects. # Sort available project keys, then return the second, third, and fourth keys. # Get all projects viewable by anonymous users. # Override this with the options parameter. ![]() ![]() # By default, the client will connect to a JIRA instance started from the Atlassian Plugin SDK It can be installed by: pip install jiraĪnd used by: # This script shows how to use the client in anonymous mode Your first option to request information and update the JIRA API is by using module jira. In this article you will find information how to run requests against the API in 2018 using python for public and private projects(google account and atlassian accounts). You will find many solutions on the web most of which nor working anymore as deprecated. Jira API is simple and powerful but you may have difficulties using it with google account.
0 Comments
Leave a Reply. |