Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I query user's teams by using Tempo Teams REST API?

According to the current documentation it is possible to query team members only per team. Is it possible to ask the teams a user belongs to with a single request? So that I don't have to query ALL teams to find the ones a user belongs to.

 

2 answers

1 accepted

3 votes
Answer accepted

Hi Reetu,

You can try to use the tempo-teams/2/user/{userName}/membership API.

This API gives you the membership of a single user during a set period, f.x. 

YOUR-INSTANCE/rest/tempo-teams/2/user/john/membership?from=2016-01-01&to=2016-02-29

will return the membership of John in Tempo Teams during the first two month of this year. The Team ID is returned in this call.

Please note that this is a private API and subject to change. Dependent on your installation, you might need to add "/jira" in front of the "/rest" part of the URL.


Regards,

Susanne

I tried to execute the first API (without dates) but it returns me error saying that dates are mandatory.

 

http://{server}/jira/rest/tempo-teams/2/user/{user}/membership

I am unable to hit any tempo-teams api from my JIRA environment. Is there any way to enable the api or is it deprecated?

Can anyone help?

Thanks in advance!

Hi @jaymomaya ,

 

To view information about the available API's for Tempo, please go to https://www.tempo.io/developers

and select the Cloud or Server Api's, depending on the version you are using.

For Server API's, only basic authentication is required. For Cloud, you will need to use a beared token / OAuth 2.0 token to authenticate.

Regards,
Susanne 

Thank you very much! Just what I needed.

 

br,

Reetu

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

216 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you