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"
I receive:
response text = {"errorMessages":[],"errors":{"resolution":"Field
'resolution' cannot be set. It is not on the appropriate screen, or
unknown."}}
I want to:
- Change of the resolution
- To remove resolution value at all
Solution 1:
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'})