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
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.