I want to create and edit issue status field , i tried with this two way but is not work.
dt = {"update": {"transition": {"id": "31"}}}
url = "https://acompte.atlassian.net/rest/api/2/issue/" + key +"/transitions"
print(url)
respons = requests.post(url, headers={"Accept": "application/json",
"Content-Type": "application/json"},
data = dt,
auth=("email",apiToken))
"status":
{
"name": "Done",
}
can someone here have the best way to achieve this?