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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.