how to list all teams using rest api
Hi @Tushar Wagh - poking around on my Teams page, I think you need to use the GraphQL API.
Oh right, here's an announcment:
On my account, I see a POST to this endpoint:
https://MYSITE.atlassian.net/gateway/api/directory/graphql?q=TeamMembership
{
"query": "query TeamMembership($teamId: String!, $membershipState: [TeamMembershipStatus], $enableV3: Boolean) {\n TeamMembership: TeamMembership(teamId: $teamId, membershipStates: $membershipState, enableV3: $enableV3) {\n user: profile {\n id,\n fullName,\n title,\n avatarUrl,\n timezone,\n status\n },\n state:membershipStatus,\n role,\n membershipId {\n teamId, memberId\n }\n }\n }",
"variables": {
"teamId": "399368c8-c7cc-4d48-bc05-17e05a192f61",
"membershipState": [
"FULL_MEMBER",
"INVITED"
],
"enableV3": true
}
}
https://MYSITE.atlassian.net/jira/people/team/399368c8-c7cc-4d48-bc05-17e05a192f61
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.