Getting Custom Field Label REST

Rosy Salameh March 8, 2017

Hello Guys,

Is there a REST API getting as parameter the custom field ID (e.g. customfield_1000) and returning its label?

thanks,

Rosy

1 answer

1 accepted

3 votes
Answer accepted
Volodymyr Krupach
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.
March 8, 2017

You can get info for all fields by calling /rest/api/2/field and then find your specific field by iterating and matching the id property. The method returns array of objects that correspond to fields and the property you are looking is "name":

[
  {
    "id": "customfield_11911",
    "key": "customfield_11911",
    "name": "Your Name",
    "custom": true,
    "orderable": true,
    "navigable": true,
    "searchable": true,
    "clauseNames": [
      "cf[11911]",
      "Your Name"
    ],
    "schema": {
      "type": "string",
      "custom": "com.atlassian.jira.plugin.system.customfieldtypes:textfield",
      "customId": 11911
    }
  },
...
]
Rosy Salameh March 8, 2017

Thanks a lot @Volodymyr Krupach smile

Volodymyr Krupach
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.
March 9, 2017

Welcome :)

Hauke Hörhold
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.
October 2, 2018

...and how?

Suggest an answer

Log in or Sign up to answer