login problem when using python jira library - Stack Overflow

The following code calling the python JIRA libraryand it works with the public JIRA server from jira

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 badges
Add a comment  | 

1 Answer 1

Reset to default -2

Inorder 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

相关推荐

  • login problem when using python jira library - Stack Overflow

    The following code calling the python JIRA libraryand it works with the public JIRA server from jira

    3小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信