'Find members in all teams in Tempo/Jira

I'm trying to work with the Jira/Tempo API (with Python 2.7), but the documentation is woefully lacking (unless I'm missing something).

Goal

The goal is to get a list of all the

  1. teams
  2. members
  3. leaders

So far

I've gotten the list of teams, but the members are all empty lists (not so on our site.)

My query URL is:

http://myserver.mydomain/rest/tempo-teams/latest/team/?id=expand=true

I don't know why the members lists are coming back empty, and I don't really know how to debug or explore this further (this is my first time working with REST/API).



Solution 1:[1]

http:// yourserver.yourdomain/rest/tempo-teams/latest/team/?expand=members

Solution 2:[2]

Get team members

From the Tempo REST API docs for Teams, Get all members of a team:

Get all members of a team

Team members can be both JIRA users and JIRA groups. In this endpoint the default value for the member type is user.

http://{JIRA_BASE_URL}/rest/tempo-teams/2/team/{id}/member

The path-variable {id} can be replaced with your team-id (integer). Additional query parameters are:

  • type (string) where default is "USER"
  • onlyActive (boolean) where default is false

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 thumbtackthief
Solution 2 hc_dev