I'm trying to get json from jira api. For this I use jira package for python. It is good for getting project and issue info. But I don't know what to do if I need to get json from url like this:
/jira/rest/structure/1.0/structure.json
Here is my server-side code:
from jira.client import JIRA
jira_options = {'server': 'https://bits.example.com/jira'}
try:
jira = JIRA(options=jira_options,
basic_auth=('user', 'pass'))
project = jira.project('CTT')
print project
print(project.lead.displayName)
except Exception, e:
print e.args[0]
print "Failed to connect to JIRA"