Access JIRA API using JIRA Python

stephanie lollar September 12, 2019

I am using Python 2.7 and the JIRA 2.0.0 python library to try to make rest calls using the JIRA api. I am getting an error "WARNING:root:Got recoverable error from GET https://jira.server.org/rest/api/2/serverInfo, will retry [1/3] in 3.80091917566s. Err: 401" and cannot figure out what the problem is.

I am able to use Postman API tool and successfully login using the same credentials as above. If anyone has a suggestion with using requests library that is fine too.

from jira import JIRA
options = {'server''https://jira.server.org'}
JIRA(options=options, basic_auth=(    'myemail@email.com''myApiToken')

1 answer

1 accepted

0 votes
Answer accepted
stephanie lollar September 12, 2019

I was able to get it working using my regular username and password. Maybe because we have an older version of JIRA? We are on Server 7.11.

Suggest an answer

Log in or Sign up to answer