Forums

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

API Call to Tempo plugin, error with queryparam 'from'

Joey Visbeen
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!
November 10, 2022
{
"errors": [
        {
                "message": "Non valid period, from '2022-06-10' to 'null'"
         }
    ]
}
As i try to call https://api.tempo.io/4/worklogs/project/{projectId}?from=2022-06-10 with postman. I get this error what am i doing wrong?

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.
November 10, 2022

Hi @Joey Visbeen

As the error message indicates, the "to" value is not given (it is "null"). 

When using the "from" parameter, you indicate that you are retrieving worklogs for a period. This requires the use of the "to" parameter as end date of the period. 

Can you please change the call to e.g
https://api.tempo.io/4/worklogs/project/{projectId}?from=2022-06-10&to=2022-11-10 

This should return the worklogs on the project with your selected projected for the period from June 10th to today that you have permission to view. 

Best regards,
Susanne Götz
Tempo team 
 

Joey Visbeen
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!
November 10, 2022

Ah Thank you! I read that message wrong. It works now

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events