[英]How I can change or clear value for Resolution field in Jira using Python?
I really cannot change resolution for my issues !我真的无法改变我的问题的解决方案! Can you please help me ?
你能帮我么 ?
jira = jira.connect()
issue = jira.issue(my_issue)
jira.transition_issue(issue.key, '1311', resolution={'id': '10306'})
Where: 1311
- transition is "Complete"
, 10306
- resolution is "Completed"
其中:
1311
- 过渡是"Complete"
, 10306
- 分辨率是"Completed"
I receive:我收到:
response text = {"errorMessages":[],"errors":{"resolution":"Field
'resolution' cannot be set. It is not on the appropriate screen, or
unknown."}}
I want to:我想要:
You cannot directly change an Issue's resolution state.您不能直接更改问题的解决状态。
It's the same as the web interface;与网页界面相同; you have to apply the appropriate workflow transition that causes the Issue to become complete;
您必须应用适当的工作流转换,使问题变得完整; IE.
IE。 changing the Status field to 'Done' or whatever the workflow says is the criteria for being completed
将状态字段更改为“完成”或工作流所说的任何内容都是完成的标准
I was able to close issue and change resolution with below code.我能够使用以下代码关闭问题并更改分辨率。
issue = jira.issue(str(sys.argv[3]))
jira.transition_issue(issue, transition='Close', resolution={'name':'Cannot Reproduce'})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.