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)
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.
Could you let us know what specific REST endpoint you are trying to use here?
AND
What is the specific REST json payload you are using at that endpoint?
I ask because with the given error message you are seeing, it tends to indicate that you are either doing an edit/update OR that the create screen in jira doesn't contain the fields that are required in order to create the issue. When you create issues in Jira (outside REST), each project and issue type can have uniquely different screens. These Screens dictate what specific fields appear as available to have values added at the time the issue is created. If this team field does not appear on the screen in question, there is no way to set a value for that field when the issue is created. Please see Defining a screen for more background information here. When making a REST call to create an issue, you still have to abide by the limitations set forth in that particular screen.
If you're creating an issue in Jira via REST, I would expect that you are calling the api/2/issue endpoint with a POST call
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.