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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,627
Community Members
 
Community Events
176
Community Groups

APIs to fetch the workflow states present for a workflow

Hi Team,

Can someone please suggest the REST API to get all the workflow states that are present for a particular workflow?

1 answer

0 votes

Hi @Apoorva Sharma

After reviewing the API, there is an endpoint that you can expand and it will bring you the statuses of the workflow.

API Endpoint: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-search-get

Extending the information with the Expansion variable: https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#expansion

Finally, this endpoint should bring you the statuses:

https://xyzxyz.atlassian.net/rest/api/3/workflow/search?expand=statuses

Hopefully this answers your question,
David

Hi @David Freitez ,

Thanks for the APIs but they are for jira cloud, We need the ones for Jira data center.

Do you have the APIs for Jira Data Center to get workflow states? 

Hi @Apoorva Sharma

You are right, what version of server are using?, so I can update the links.

Hi @David Freitez,

We are using Jira version 9.4.0

Hi @Apoorva Sharma

Here is the link of the API Documentation for Jira 9.4.0 on server:

https://docs.atlassian.com/software/jira/docs/api/REST/9.4.0/

 As cloud, it also possible to extend the information with the Expansion variable:

image.png

I suggest you to try with the workflow endpoints and see if it is possible to use the expansion variable to retrieve the statuses.

I hope  this sends you into the right direction.

Thanks,
David

Like Apoorva Sharma likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events