将现有的JIRA票/问题分配给Python的用户
我正在尝试使用Python分配现有的JIRA票。尝试了以下方法,但没有一种方法正在起作用。我可以添加评论,但没有分配问题
#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)
I'm trying to assign a existing jira ticket using python. Tried the below methods , but none are working. I'm able to add comments but not assign the issue
#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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同一问题,请自己使用端点,而不是 - https://develoverer.atlassian.com/cloud/jira/jira/platform/rest/rest/rest/v3/api-group-group-group-group-group-group-sissues/#api -rest-api-3-issue-issueidorkey-assignee-put
如果您有兴趣,我将放置一个在其中包含很多这些东西的仓库,以及完成工作的方法。在其中仍然可以整理很多东西,所以请承认这是一个beta版本:) https://github.com/ dren79/jirascripting_public
I've run into the same issue, use the endpoints yourself rather than the - https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-assignee-put
If you're interested I'm putting together a repo that has a lot of this stuff in it with ways to get stuff done. There is still a lot to tidy up in it so conceder this a beta release :) https://github.com/dren79/JiraScripting_public