The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
TAGS
AUG Leaders

Atlassian Community Events