Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we have bulk API request to update transitions?

Fatemeh Hosseini March 17, 2020

Right now, updating ticket transitions (or states, e.g. Done, QA, etc)  with bulk API requests is not supported. But we want to update all the tickets in the current sprint at the same time and doing this one by one is so inefficient. Also, we cannot use oauth for transition update request, simple API token works for this type of request which is less secure compared to oauth.

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
March 17, 2020

Hi @Fatemeh Hosseini  - Welcome to the Atlassian Community!

You can run a filter and then do a bulk change on the results to execute a transition manually. 

Fatemeh Hosseini March 17, 2020

How? Can you give an example? 

This is how I update transition for a specific ticket:

curl -X POST \
https://sandbox.atlassian.net/rest/api/3/issue/CHAL-12134/transitions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u 'username@example.com:<api-token>' \
-d '{
\"transition\":{\"id\":\"61\"}
}'

But looks like jira is not supporting bulk request for updating transitions based on what I see in https://developer.atlassian.com/cloud/jira/software/rest/.

John Funk
Community Champion
March 17, 2020

I was referring to a manual bulk change, not through the API. Create a filter and run the filter. Then click on the 3 dot menu at the top right and choose Bulk Change All. Then follow the steps through that. 

Fatemeh Hosseini March 17, 2020

No I need to do it from jenkins, so it should be through API calls.

John Funk
Community Champion
March 17, 2020

Bulk update is not yet implemented, you can vote for it here: https://jira.atlassian.com/browse/JRACLOUD-70356

Fatemeh Hosseini March 17, 2020

Thank you @John Funk  for helping

John Funk
Community Champion
March 18, 2020

If this is all we can do for you, can you click on the Accept answer button above to close this one out? Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events