Hi guys,
I'm trying to use python to read few jiras to do some automated tasks etc..
Currently stuck with jira server location resolution issue:
my code:
from jira import JIRA
# Get the JIRA object
jira = JIRA('https://jira.projectname.net/browse/', basic_auth={'username', 'pwd'})
issue = jira.issue('ABCD-1234')
print issue.fields.project.key # 'ABCD'
print issue.fields.issuetype.name # 'New Feature'
print issue.fields.reporter.displayName # 'username'
my Jira link:
https://jira.projectname.net/browse/ABCD-1234
my error:
Got recoverable error from GET https://jira.projectname.net/browse/rest/api/2/serverInfo, will retry [1/3] in 12.2934759738s. Err: 401
my Question/request:
how to change default rest api path that the script is adding? i just need it directly take the server location and append issue id to get the jira link. Any suggestions are appreciated.