Forums

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

How to use Jira APIs to pull out all options for a custom field without Administer Jira permissions?

Mya.Hauck
Contributor
March 3, 2023

We have a team who wants to use the Jira APIs to pull out the options for one our custom fields in Jira. We don't want to give them Administer Jira permissions for this one task.

This API doesn't require Admin permissions but looks to be deprecated: GET /rest/api/3/customFieldOption/{id} 

I believe this is the only API available GET /rest/api/3/field/{fieldId}/context/{contextId}/option but this requires Administer Jira permissions.

Is this correct? Is there any other way to pull custom field options without being an administrator?

 

Thanks

 

1 answer

0 votes
Carlos Garcia Navarro
Community Champion
March 4, 2023

Hi @Mya.Hauck ,

Did you try the APIs to see if you can retrieve the values? By reading the documentation, it says that you need either of these permissions:

  • if the user has the Administer Jira global permission.
  • if the user has the Browse projects project permission for at least one project the custom field is used in, and the field is visible in at least one layout the user has permission to view.

so with browse projects permission, you could obtain the data.

Mya.Hauck
Contributor
March 6, 2023

@Carlos Garcia Navarro I am looking for an API that I can use without Administrator permissions. I believe you are talking about this API GET /rest/api/3/customFieldOption/{id} which is deprecated and no longer works. Here is the post I found when trying to use this API: Deprecation Notice: deprecation of custom field options APIs (+new APIs published)

 

I think this should be more clearly marked in the documentation.

Like Matt Doar likes this

Suggest an answer

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

Atlassian Community Events