Is there any REST API to get all fields configured in a team-managed project?

Steven Pila October 5, 2022

Hi,

We would like to directly get the fields configured only in a specific team-managed project, is it possible with the existing REST APIs?

We already tried some REST APIs but to no avail.

We tried this get paginated fields API (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-rest-api-3-field-search-get) but it will only return fields of classic projects.

The only thing we could do is use the get all fields (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-rest-api-3-field-get) and filter out based on the project scope (like below)
get all fields.png

But doing this would mean we will get all fields in a JIRA instance first and filter them out which would be a very big overhead especially if there are thousands of fields.

 

We also created a ticket here https://ecosystem.atlassian.net/browse/ACJIRA-2410 but no response as of today.

2 answers

0 votes
Kinay Mizuho September 8, 2024

Hi @Steven Pila 

This API may satisfy your needs?

Get create issue metadata 

GET rest/api/2/issue/createmeta?projectKeys=KEY&expand=projects.issuetypes.fields

By using expand parameter it returned all fields used in the project.

However, this API is Deprecated, we may need to query field by Issue types.

Get create field metadata for a project and issue type id 

 

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 8, 2023

Hey @Steven Pila  - Did you make any progress on this? 

Steven Pila September 7, 2023

Hi @John Funk , unfortunately, there's none, currently, we just treat this as a limitation and used a fixed list of system fields for team managed projects.  

Like John Funk 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