How do I retrieve the team name for a team via the Compass GraphQL API?
Hi Dave,
Thank you for posting in the Community group.
Currently the Atlassian GraphQL API field for Compass components returns the owner as an ID. So the thing you get back from a call to the `component` field will be something in the format `ari:cloud:identity::team/<some-uuid>`.
You can use the Team fields in the GraphQL API to subsequently fetch the pertinent metadata for that team.
query getTeamName {
team {
teamV2(siteId: "<my-cloud-id>", id: "<my-team-id>") {
displayName
}
}
}
Let me know if that works for you.
Thanks - that works but doesnt seem to be documented in the API reference? Did I just miss it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dave Allison , here are the docs: https://developer.atlassian.com/platform/atlassian-graphql-api/graphql/#teams_teamV2
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.