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: 

atlassian-python - can't set mandatory field when closing issue

Bertrand Delaitre
February 2, 2022

Using atlassian-python library, I'm trying to change the status of an issue from one status to "Closed".

In the "Close" transition screen, the Resolution field is mandatory. So under Jira, when I want to close a ticket I've to fill Resolution field. It's possible because the field is in the transition screen.

Using the python library, I'm using set_issue_status to change the status to Closed with Resolution field defined. It doesn't work. 

Here is my code

jira.set_issue_status(issue_key="SAIUSR-59",
status_name="Closed",
fields={'Resolution': {'name': 'Fixed'}},
update={"comment": [{"add": {"body": "Mis à jour par Python"}}]})

Here is the answer : 

"requests.exceptions.HTTPError: Resolution: Field 'Resolution' cannot be set. It is not on the appropriate screen, or unknown."

 

If I remove the "fields" parameter, then I get:

requests.exceptions.HTTPError: resolution: Resolution is required.

 

Any help is welcome.

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Bertrand Delaitre
February 2, 2022

I have to use "resolution" instead of "Resolution". That is.

DEPLOYMENT TYPE
SERVER
VERSION
7.13.8
TAGS
AUG Leaders

Atlassian Community Events