Forums

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

How to get 'list' custom field options using REST API?

System Admin May 11, 2021

How to get 'list' custom field options using REST API?

 

We have different types custom fields. We want to get options for list type fields.

 

 

Thanks

2 answers

2 votes
Prince Nyeche
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.
May 11, 2021

First of all, you need to find the field by using the "/rest/api/2/field" endpoint. Then you can use the api for context option to get the options. I'm assuming during the first search, you are filtering for the type of custom field you want.

1 vote
camus_b_li June 6, 2023

for Jira Server:

If you know the project and the issuetype that the field was used, you can try:

https://{jirahost}/rest/api/2/issue/createmeta?projectKeys={projectKey}&issuetypeNames={issuetypeName}&expand=projects.issuetypes.fields

 

If you know the issue that the field was used, you can try:

https://{jirahost}/rest/api/2/issue/{issueIdOrKey}/editmeta

 

Good luck.

Saurabh Kejriwal December 5, 2023

thanks for sharing. works for me :)

D X March 7, 2024

Dear @camus_b_li 

thank you for sharing the link, but I got a 404 error when using https://{jirahost}/rest/api/2/issue/createmeta?projectKeys={projectKey}&issuetypeNames={issuetypeName}&expand=projects.issuetypes.fields

I'm sure of the jirahost (using /rest/api/2/field returned all fields), the projectKey and issuetypename

is there another way to list all custom field associated to a project ?

 

regards,

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events