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

1 vote
Answer accepted
Bertrand Delaitre February 2, 2022

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.13.8
TAGS
AUG Leaders

Atlassian Community Events