How do I retrieve the team name for a team via the Compass GraphQL API?

Dave Allison October 16, 2024

How do I retrieve the team name for a team via the Compass GraphQL API?

1 answer

2 votes
Andrei
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 16, 2024

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.

Dave Allison October 17, 2024

Thanks - that works but doesnt seem to be documented in the API reference? Did I just miss it? 

Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 17, 2024
Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events