Reputation: 149
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"
I receive:
response text = {"errorMessages":[],"errors":{"resolution":"Field
'resolution' cannot be set. It is not on the appropriate screen, or
unknown."}}
I want to:
Upvotes: 0
Views: 2837
Reputation: 1177
Clearing is not implemented, but a feature request has been opened at https://jira.atlassian.com/browse/JRACLOUD-75100 (with related request on GUI at https://jira.atlassian.com/browse/JRASERVER-11444).
Upvotes: 0
Reputation: 55
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'})
Upvotes: 3
Reputation: 555
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. changing the Status field to 'Done' or whatever the workflow says is the criteria for being completed
Upvotes: 0