【发布时间】:2022-10-26 00:25:02
【问题描述】:
我正在尝试使用 python 分配现有的 jira 票证。尝试了以下方法,但没有一个有效。我可以添加 cmets 但不能分配问题
#Method 1 Using Jira library - Getting JiraError HTTP None, text list index out of range
from jira import JIRA
jira_connection = JIRA(basic_auth=(username,password),server)
issue = jira_connection.issue('100')
jira_connection.assign_issue(issue,user_name)
#Tried below way as well
issue.update(assignee={'accountId':'natash5'})
#Method 2 Using Servicedesk - the update_issue_field function was empty in the source code
from atlassian import ServiceDesk
sd = ServiceDesk(url= "")
sd.update_issue_field('100',{'assignee':'user_name')
#Method 3 Soap API - SAXParse exception invalid token
from suds import Client
cl = Client(url)
auth = cl.service.login(username,password)
【问题讨论】:
标签: python python-3.x jira jira-rest-api python-jira