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: 

I am looking to get JIRA REST API to return all teams by orgId

Sadanand Shinde
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2024

Currently, The team public REST API below does not have API that would return all teams by organization ID.  there is a API to get a single team by team_id but how does one know team Id if they do not get all teams . any recommendation/suggestion. 

https://developer.atlassian.com/platform/teams/rest/v1/api-group-teams-public-api/#api-gateway-api-public-teams-v1-org-orgid-teams-post 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jim Knepley - ReleaseTEAM
Atlassian Partner
July 22, 2024

The wrong way to do it might be OK if you're making a one-off tool: use an internal API discovered from the Search People/Teams page.

https://<whatever>.atlassian.net/gateway/api/v3/teams/search?organizationId=MYORGANIZATIONID

 

The more correct, but more complex, way to do it is to use the GraphQL API (probably teamSearchV2) and include the team ID in query results.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM Trial
TAGS
AUG Leaders

Atlassian Community Events