which specific custom field data do you want? options?values?Please describe in detail?
Custom field name : Single value selected List
I want their all options with the help of API's
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the createmeta and editmeta endpoints contains an attribute for that. (but it is not there for all fields...its called allowedoptions or something similar ..)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Danyal mentioned, the options are present in the create/edit meta endpoints under the allowedValues section of the custom field. I've included a snippet below of a single value select custom field that should look similar to your environment.
"customfield_10501": {
"required": false,
"schema": {
"type": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
"customId": 10501
},
"name": "CustomList",
"operations": [
"set"
],
"allowedValues": [
{
"self": "http://jira.jirabox.com/rest/api/2/customFieldOption/10100",
"value": "Option 1",
"id": "10100"
},
{
"self": "http://jira.jirabox.com/rest/api/2/customFieldOption/10101",
"value": "Option 2",
"id": "10101"
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to both of you.
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.