The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How set the resolution and resolution date using jira-python in Jira Cloud

Francois Jautard
October 26, 2018

Hi,

I cannot set resolution and resolution date using jira-python.

jira.transition_issue(jira_issue, transition=11, resolution={'name': 'Done'})

The given error is:

Field 'resolution' cannot be set. It is not on the appropriate screen, or unknown.

I tried plenty of tests but no way.

Mayday mayday!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 26, 2018

This is what it says - the field "resolution" is not on the edit screen, so you can't change it.

The obvious answer is "add it to the edit screen", but in reality DO NOT DO THIS.  If you do, your users will set a resolution, hence closing every issue, on every edit.

You should only put resolution on transition screens - i.e. set resolution when closing an issue.  This also applies to the process you are trying to automate with python.  You should only set resolution as part of a command to close the issue.