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

0 answers

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