Hi,
I need a superhero guys!
I'm trying to update the status of an issue via the Jira rest API.
my python code is the following one:
issue_stat = requests.request("GET","http://localhost:8080/rest/api/2/issue/TEST-3/transitions?expand=transitions.fields",auth=('user', 'pwd'), headers=headers)
id=(json.loads(verif_issue_stat.text)["transitions"][0]["id"]) #THE id TO CLOSE THE ISSUE
payload='{"transition": {"id":'+id+'}}' #id =21
headers = {
'content-type': "application/json",
'cache-control': "no-cache"
}
response_close_jira = requests.request("POST", "http://localhost:8080/rest/api/2/issue/TEST-3/transitions",auth=('user', 'pwd'), data=payload, headers=headers,verify=False)
The only response am receiving is the one told in the title.
I tried to change the payload shape and data type but it doesn't change anything to the api response.
Please help!