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
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/#/.
May I suggest reading the documentation before answering the question ?
https://developer.atlassian.com/platform/atlassian-graphql-api/graphql/#teams_teamSearchV2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.