官方文档: https://jira.readthedocs.io/en/master/ 官方文档: https://docs.atlassian.com/DAC/rest/jira/6.1.html#d2e864 优秀博客: https://blog.csdn.net/weixin_43790276/article/details/89892699 先安装jira库 pip install jira from jira import JIRA jira = JIRA(auth=( " username " , " pwd " ), options={ ' server ' : ' https://**.**.**.** ' }) projects = jira.projects() print(projects) 注意: jira = JIRA ( auth =("username", "pwd"), options={'server': 'https://**.**.**.**'}) 第一行中的参数是auth不是basic_auth,连接方式请参考文首最新的官方文档,其他文章均为basic_auth,导致连不上 输出: 是一个数组,每个项目由<>包围,key是关键字,name是项目名 [<JIRA Project: key='NEW', name='***项目',