Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Issue when using TeamSearchV2 graphql query

Dante Shareiff
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2025

I am try to query teams using the TeamSearchV2 with the following query: 

query Team($orgId: ID!, $siteId: String!,$query: String!) 
{ team
{ teamSearchV2(organizationId: $orgId, siteId: $siteId, filter: {query: $query}, searchFields:[NAME])
{ edges
{ node {
memberCount
includesYou
team {
displayName
description
id
state
},
}
}
}
}
}


 If I remove the searchFields:[NAME] from the query its works fine.  With it I get the following error:

  "message": "Validation error (UnknownType) : Unknown type 'TeamSearchField'",

Any ideas or suggestions? 

Thanks in advance

1 answer

0 votes
Sahir Maharaj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 12, 2025

Hello @Dante Shareiff

The error you’re encountering appears to be related to the use of the searchFields:[NAME] parameter. Based on my understanding, the error suggests that the TeamSearchField type isn’t recognized in your GraphQL schema.

Double-check the schema documentation to ensure that NAME is a valid search field for TeamSearchV2. If it’s not explicitly supported, removing the searchFields parameter, as you mentioned, is a temporary solution.

If you still encounter issues, reach out to Atlassian support at https://support.atlassian.com/contact/#/

Dante Shareiff
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2025

May I suggest reading the documentation before answering the question ?

https://developer.atlassian.com/platform/atlassian-graphql-api/graphql/#teams_teamSearchV2 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events