The following code calling the python JIRA library /
and it works with the public JIRA server from
jira = JIRA('')
but once I add the authorization details said to be needed by the admin of my company(server/token), it does not work with my company's JIRA server
options = {'server':'https://abc', 'verify':False}
jira = JIRA(options, token_auth="xyz")
For some unknown reason, it already leads to a 404 error complaining about the non-existence of
https://abc/api/2/serverInfo
where abc is the server address of my own company.
Does anyone know why it is this way? This is my first question
To get around this, I just convert the curl command to python request and login. But then I have no idea how to create a JIRA object defined by the library if I do not login to my company's JIRA server using the library. Any one has any idea on how to achieve this. Thanks
The following code calling the python JIRA library https://jira.readthedocs.io/
and it works with the public JIRA server from https://jira.atlassian
jira = JIRA('https://jira.atlassian')
but once I add the authorization details said to be needed by the admin of my company(server/token), it does not work with my company's JIRA server
options = {'server':'https://abc', 'verify':False}
jira = JIRA(options, token_auth="xyz")
For some unknown reason, it already leads to a 404 error complaining about the non-existence of
https://abc/api/2/serverInfo
where abc is the server address of my own company.
Does anyone know why it is this way? This is my first question
To get around this, I just convert the curl command to python request and login. But then I have no idea how to create a JIRA object defined by the library if I do not login to my company's JIRA server using the library. Any one has any idea on how to achieve this. Thanks
Share Improve this question edited Feb 14 at 16:18 infinity_coding7 5096 silver badges18 bronze badges asked Feb 3 at 4:48 user4343712user4343712 4011 gold badge3 silver badges8 bronze badges1 Answer
Reset to default -2Inorder for it to work you need to check the authentication method and verify your API based URL, here's the code for the same , execute it in your terminal.
Public Jira Cloud instances use https://yourdomain.atlassian/rest/api/2/
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745249064a4618564.html
评论列表(0条)