Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Is there anyway i can get all the transitions of a Project using RestAPI?

I want to change the transition  of issue using 'Rest API' for my automation release tool. Is there any way i can get all the transitions of a project using RESTAPI

3 answers

1 vote

Hello,

I guess what you want, you want to get all transitions, wich are available for an issue in a project. If so, then you should use GET /rest/api/2/issue/{issueIdOrKey}/transitions

You can find more info here:

 

https://docs.atlassian.com/software/jira/docs/api/REST/7.11.2/?_ga=2.212929556.1285141952.1534141867-1659643416.1506407535#api/2/issue-getTransitions

Thanks for you quick reply Alexey.

This is for a particular issue. But i want to know how many transitions for that project itself. Do you have any idea.

Tranisitions are entities of workflows. And you attach workflows to projects. Projects do not have any statuses. Issues have statuses. That is why you transition issues, not projects. If you want to know all transisitons for a project, then you have to choose all workflows for a project and then choose all transitions within these workflows. Are you sure you need this info?

@Alexey Matveev _cPrime_ I have the same requirement to get all the transitions for one project. Can you help give me some guide on how to get that? what does workflow mean? thanks.

Like Colt McCormack likes this

@Alexey Matveev [cPrime] I have the same requirement. Can you please update us on this? How can I get all the transition of Project. I can get all workflows using /rest/api/3/workflow API but I cant get transitions. Please reply on this.

Like Colt McCormack likes this

I think what you are asking is to get all transitions for a workflow not for a project. If so, then I do not know how it is possible currently

I have no idea if this is documented anywhere, but I came across it a while back in some search somewhere.  Here's what I have found that will give you workflow info.  Still haven't found a way to grab workflow diagram images in bulk, but maybe one day!

(Of course you'll substitute your base URL, project key, and workflow name where appropriate.  You might also need to be a Jira admin to get the info, but I'm not sure.)

  • This returns the workflow scheme for a given project.
    • JIRA_BASE_URL/rest/projectconfig/1/workflowscheme/PROJECT_KEY
  • This returns all the details about the workflow with the given name and for the given project.
    • JIRA_BASE_URL/rest/projectconfig/1/workflow?workflowName=WORKFLOW_NAME&projectKey=PROJECT_KEY
  • This returns all the details about the workflow with the given name and for the given project. (Might get XSRF error, but if you don't, you'll get better results than the other one above)
    • JIRA_BASE_URL/rest/workflowDesigner/latest/workflows?workflowName=WORKFLOW_NAME&projectKey=PROJECT_KEY

@WW Thanks, the best I have found so far. 👍

it does seem strange that we are able to set a transition id on issue creation, but there is no way to get the list of possible transition Ids beforehand

Suggest an answer

Log in or Sign up to answer
TAGS

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