Forums

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

How can i get list of fields on a transition using REST API

Srilatha Pokala
Contributor
May 31, 2017

I am looking to get list of transitions and list of fields on each transition thru Jira REST API.

Rest API i am using:

/rest/api/2/issue/{issueIdOrKey}/transitions?expand=transitions.fields

parsing seems to be issue here, as i see under fields element, individual field is defined as customfield_xxxxx instead generic name(like field)

Is there any better API call to get the list of fields and mandatory/required field information?

1 answer

0 votes
Nir Haimov
Community Champion
January 20, 2019

Hi,

You will have to run another call to: /rest/api/2/field

Search in the response of that call for your field and get it's name.

Suggest an answer

Log in or Sign up to answer
TAGS
Atlassian, Team '25 Europe, Atlassian conference, AI-powered teamwork, Atlassian events, keynote speakers, Barcelona tech conference, Atlassian Williams Racing, Carlos Sainz, Jenson Button, Mike Cannon-Brookes, Anu Bharadwaj, Atlassian Rovo

Atlassian Williams Racing is coming to Team '25 Europe 🏎️

Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.

Register now
AUG Leaders

Atlassian Community Events