Forums

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

How to get a list of all the values/options in the new Jira Team field, customfield_10001?

christopher.pola February 22, 2024

I've tried many different REST API GET requests to return a list of all available values/options on the customfield_10001 the new Jira Team field.

Nothing is returning a list of values available to select in that field in the UI. I tried to get 'Context', 'Schemas' and do chained API calls but nothing. 


I tried: https://<instance>/rest/api/3/field/customfield_10001/context 

It returned:

"id": "10101",
"name": "Default Configuration Scheme for Team",
So, then I tried to get the Field Configuration Items
https://<instance>t/rest/api/3/fieldconfiguration/10101/fields and it returns nothing...
{
"errorMessages": [
"Field configuration not found."
],
"errors": {}
}
I just want a list of all the values in the Jira Team (customfield_10001) field... is this not possible?
I'm doing just some exploratory/discovery work for our main system/partners/customers.

2 answers

1 accepted

4 votes
Answer accepted
Mikael Sandberg
Community Champion
February 22, 2024

Hi @christopher.pola,

The new Team field is not storing that list in the field itself, that information is coming from Teams section and you have to use the GraphQL API for teams to get the list. 

christopher.pola February 22, 2024

Hello @Mikael Sandberg

Thank you for steering me in the right direction. I'm slowly getting a grip around how these modules Team / Software etc. are architected.

Like Mikael Sandberg likes this
christopher.pola February 23, 2024

Ciao @Mikael Sandberg ,
I thought to try my luck here and just ask quickly. I'm testing out the GraphQL endpoint, and the `query Team2` to search on the Teams. 

I need to provide two required fields Organization ID and a Site ID. I'm trying to find documentation about what those values are and how to retrieve them. If you have any shortcuts or knowledge of them and have time, I'd be happy to receive any tips/guidance on what values I need to pass with those. 

Cheers,

Chris

Mikael Sandberg
Community Champion
February 23, 2024

You can get the org id via this API, https://developer.atlassian.com/cloud/admin/organization/rest/api-group-orgs/#api-group-orgs

I have used the site id before, but cannot remember how I got it, let me dig through my scripts and see if I can find it.

Mikael Sandberg
Community Champion
February 23, 2024
christopher.pola February 23, 2024

Thank you @Mikael Sandberg , you are money$!
The Site Id seems relatively straight forward. 

I am caught in another loop now with the Atlassian Admin site and trying to add the existing Jira Software piplanning.atlassian.net instance to my Admin site. For some reason - intuitively - I'm not able to add existing Jira Software instance piplanning.atlassian.net and it directs me to start a new Jira Cloud trial. I'm trying to sort through this. 

Screenshot 2024-02-23 at 12.14.47 PM.png

0 votes
christopher.pola February 22, 2024

Also there is nothing in the Team API to do this. It is all singular API calls if you know the Team Id value in advance. 

https://developer.atlassian.com/platform/teams/components/team-public-rest-api/

Suggest an answer

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

Atlassian Community Events