What field types are compatible with api/2/field/{fieldKey}/option endpoints?

I am trying to create a select field that I can update the options using the rest API.  There are a complete set of endpoints designed for this purpose, yet when I attempt a GET call on any of my select fields I am returned the following error:

{
  "errorMessages": [
    "The field with the given key does not exist or does not support options"
  ],
  "errors": {}
}

I have attempted creating a new field using the POST /rest/api/2/field method with the following definition:

{
    "name": "New Customer Field",
    "description": "Custom field for picking groups",
    "type": "com.atlassian.jira.plugin.system.customfieldtypes:select"
}

and still I am returned the same error above when I attempt to use any of the /option endpoints.  Can someone please explain what field type are the endpoints designed to work with?

11 answers

1 accepted

This widget could not be displayed.

For clarification, this endpoint is only compatible with fields that are created with an Atlassian Connect Add-on.  Currently there is no support for editing select field values via API for Cloud instances.

This widget could not be displayed.

Checked this in my cloud instance and got the same error. Please report a bug: https://confluence.atlassian.com/support/atlassian-cloud-bug-fixing-policy-206865884.html

This widget could not be displayed.

+1 – Did a bug get logged for this error?

This widget could not be displayed.

I have a ticket in with the support team, but I was informed this is expected behavior due to the fact this endpoint was intended to only work for fields created by a Connect Add-on.  I was then pointed to this site: https://developer.atlassian.com/ to submit feedback, but when I submitted the form I got this error:

 Screen Shot 2016-12-14 at 8.21.40 AM.png

I am now waiting on support to create the feature request for me...

This widget could not be displayed.

Hi JP Rowan,

Thank you for sharing the status!

This widget could not be displayed.

As far as I can tell, you can create an empty custom field, but there are no ways to add values to the custom field using REST.  My successful postman body for creating an empty select list was

{

    "name": "Whatever",

    "description": "Custom field for whatever",

    "type": "com.atlassian.jira.plugin.system.customfieldtypes:select"

}

I was not able to post/put any options, nor do anything effective with options at creation.  Hoping to get some resolution to this.  There has been at least one ticket open for this for over a year sad

 

https://jira.atlassian.com/browse/JRA-36112  Hopefully we can restart the campaign.

This widget could not be displayed.

From today's support ticket I was told to sit and wait and hope something gets done in that feature request.  I'm following up to see if I can expose those API points myself by writing a rest plugin, but that is a little beyond me and I hope it does not come to that.

This widget could not be displayed.

Hi Eli,

You can not expose own REST for JIRA cloud. It's possible only for JIRA Server.

This widget could not be displayed.

Thank you for the definitive answer, it has been difficult finding anything concrete for what can and cannot be done with so many versions of JIRA running around.

 

This widget could not be displayed.

Do we have any update on this this issue, i also have the same problem with my Jira cloud ? 

This widget could not be displayed.

is it resolved? 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

176 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you