Hi all,
As a title say, I am trying to change the jira status using REST API.
I have written a small script. Unfortunately, it is not working as expected.
Can anyone look into script and let me know if I am missing something?
url = "https://domain-name.atlassian.net/rest/api/2/issue/{id}/transitions?expand=transitions.fields"headers = { "Accept": "application/json"}json_data = { "update": { "comment": [ { "add": { "body": "Issue is rejected." } } ] }, "transition": { "id": "161" } }for issue_id in issue_ids: response = requests.request( "POST", url.format(id=issue_id), data=json.dumps(json_data), headers=headers, auth=auth )
This is a duplicate of your earlier question:
https://community.atlassian.com/t5/Jira-questions/How-to-reject-issue-based-on-issue-id-using-REST-API-Jira-Python/qaq-p/2782063
It looks like you're new here. Sign in or register to get started.