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
AUG Leaders

Atlassian Community Events