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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.