Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to transition a ticket from "In QA" to "Closed" using python API Library Edited

I am struggling to get automation working that will close a set of tickets that are in on status and need to move to closed.  I have searched for similar solutions/problems and attempted all that i have read - to no avail.  So I am asking for some help.


i have tried a couple of ways - the first and most straight forward looked like the followoing API (ticket has the ticket number in it).

jira.set_issue_status( ticket, "Closed", {'resolution': {'name': 'Fixed'}} )


I got back a:

400 Client Error: Bad Request for url:<ticket>/transitions


I also tried not passing in the fields value and got the same response.


Watching others - i then did:

jira.get_issue_transitions(ticket) - to get the list of transitions 


[ {'id': 11, 'name': 'In Progress', 'to': 'In Dev'},
{'id': 41, 'name': 'In QA', 'to': 'In QA'},
{'id': 81, 'name': 'Open', 'to': 'Open'},
{'id': 91, 'name': 'Ready For QA', 'to': 'Ready For QA'},
{'id': 191, 'name': 'Development Ready', 'to': 'Development Ready'},
{'id': 31, 'name': 'Close', 'to': 'Closed'}]


transition_id_to_status_name(ticket, "Closed") - to find the transition_id that would cause this change.

Result: transition_id: 31

and attempted


jira.set_issue_status_by_transition_id(ticket, "31")  -- the ID to get to close




jira.set_issue_status( ticket, "Closed")


All returning "400 Client Error:  Bad Request for url"


I am stumped - any help is appreciated.


1 answer

Hi Ken,

Could you please share your post request with details (url, auth, post body as json) in behind the script? so, we can help you more easily.


Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you