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

Get the custom field details of an issue in REST API

Karthik J November 8, 2013

I am trying to load an issue through Rest API like

"https://myjirademand.atlassian.net/rest/api/2/issue/10001" where I am getting the custom fields as "customfield_10001", "customfield_10002" etc. How can I get the field name which is entered for that particular field and also other details like input type?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

12 votes
Answer accepted
Aleksander Mierzwicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2013

Just use expand=names query param - then you'll get names field in your reply that gives you maping from field keys into display names.

https://myjirademand.atlassian.net/rest/api/2/issue/10001?expand=names

If you need more details then there are other useful expand values:

  • editmeta - gives you detailed information about field, including possible values for select fields
  • schema - gives you information about type of field
Karthik J November 11, 2013

Thanks Aleksander.

Richard M March 27, 2014

Where can I find the list of all the tags that can be passed to the expand param?

Ismar_Slomic July 10, 2015

Thanks, very helpful!

1 vote
PedroA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 8, 2013

Hey Karthik, how you doing?

I am not quite sure that you can get this inside the same call, I would need to confirm.
This gets tricky when you also wants the input type for the specific issue. For sure you are aware
about the: http://example.com:8080/jira/rest/api/2/customFieldOption/{id} resource but this is not what you are aiming for, right?

I need to double check this and get back to you. =)

Cheers,
Pedro

TAGS
AUG Leaders

Atlassian Community Events