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.
I have to use "resolution" instead of "Resolution". That is.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.