Hi,
I am trying to create an issue where 3 custom fields(select fields) are mandatory. To get options for the custom field, I use API : /rest/api/3/customField/10204/option.
I get response even the user has administrator access:
{
"errorMessages": [
"Field 10204 does not exist or you don't have permission to view it."
],
"errors": {}
}
Thanks in advance.
I had to go away from using the custom_field name and use the name of the actual custom field. So instead of custom_field_10204, I used AE. This gave me all that I needed for the data pull, but it is weird. When on the Next-Gen board, the custom_field_10204 is used. On the classic board, is the name of the field, in this case AE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Sasha K ,
Thanks for reaching out, and the error you encountered usually indicates an issue with the custom fields context settings or the global permission settings for the user running the call.
First Check and verify that you have the "Administer Jira" Global permission, as covered in the API documentation for this endpoint "GET /rest/api/3/customField/{fieldId}/option" the permissions requirements are:
Permissions required: Administer Jira global permission.
Next, point to check covered in the doc:
Only options from the global context are returned.
Can you navigate to custom field click on configure > click on edit configuration > and make sure that you have selected the global context to apply to all issues in Jira and modify to verify if this is the case.
Q quick link to the "edit configuration" option will be located at:
Let me know what you find.
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I still do not see my customfield with this change. By the way, it was already global and applied to all issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Todd Thelin ,
Thanks for the info and it sounds like you are running into a similar issue to @Sasha K , but still seeing issues after checking the field context.
First I just wanted to confirm you also checked the global permission noted above, and that you modified the custom field ID to match your fields settings when navigating tot the settings.
I also want to confirm the field type, what is the Field type you are looking at? Is the custom field with the select list options you are doing the call against native to Jira as one of the built in Select lists OR is it a custom Field created via a Connect App. As the endpoint "GET /rest/api/3/customField/{fieldId}/option" notes:
Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps.
Regards,
Earl
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.