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?
Nevermind. I found this.
update_json = { "update": { "comment": [ { "add": { "body": "Resolved via automated process." } } ] }, "transition": { "id": "5" }, "fields": { "resolution": { "name": "Incomplete" } } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.