Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Tempo Planning API always returning empty response

Contact IT March 15, 2022

Hello,

 

I'm having trouble retrieving anything from the Tempo Planning API call for allocation

https://www.tempo.io/server-api-documentation/planner?hsLang=en#tag/Allocation

As defined there, I've tried multiple of the query parameters to no avail, I always get a 200 Status response with an empty response body no matter how I set up the parameters.

To test it I've tried using postman pointing towards our Jira instance. Some examples of the parameters I've tried:

 

GET https://${BASE_URL}/rest/tempo-planning/1/allocation?startDate=2022-02-01&endDate=2022-02-10
GET https://${BASE_URL}/rest/tempo-planning/1/allocation?assigneeKeys=username&assigneeType=user

1 answer

1 accepted

0 votes
Answer accepted
Susanne Götz _Tempo_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2022

Hi @Contact IT , 

 

This REST API returns all plans that you have permission to view in Tempo. When using only the dates as parameters, it should return your own plans. 
To retrieve the plans of other users, you need to have the "View Team plans" permission for the team that the plan owner is a member of (the same permission checks apply to the REST API as in the UI, https://tempo-io.atlassian.net/wiki/spaces/THC/pages/386302535/Planner+Permissions+-+Tempo+Server).

In case you have permission to view plans for the team, but no data is returned by the API, can you please create a ticket in our Tempo Support system, https://tempo-io.atlassian.net/servicedesk/customer/portal/6, so we can better investigate this problem. 

Best regards,
Susanne Götz
Tempo team 

Contact IT March 15, 2022

I see, then I should review the level of access of the user we're using to access the API.

Since it is a technical user with nothing planned, that might explain why using the date parameters returns an empty response.

Susanne Götz _Tempo_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2022

That sounds like a good approach. 
In case this technical user, who is used for authentication, needs to have access to the plans of all users, you will need to give him the "View team plans" permission for all teams (and all users need to be in at least one of the teams).

Best regards,
Susanne 

Contact IT March 16, 2022

I've reviewed the access, and that was exactly the issue, I can retrieve the info now.

Thanks a lot for your help

Suggest an answer

Log in or Sign up to answer