update_json = {
"update": {
"comment": [
{
"add": {
"body": "Resolved via automated process."
}
}
]
},
"transition": {
"id": "5"
},
}
I am able to update my issue, setting it to resolved and adding the comment, via this call:
uri = BASE + "rest/api/2/issue/%s/transitions" % issue_key
request = requests.post(uri, data=json.dumps(update_json), headers=HEADERS, auth=(user_name, password))
The Resolution is set to Fixed when I do that. What could I add to my JSON to set the Resolution to, for example, Incomplete?