Forums

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

Jira Tempo Rest API get all worklogs from issue returns no worklogs but on the website i can see wor

Rol
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!
May 31, 2023

Hello, in my application i download issues and corresponding worklogs from Jira. It was slow but worked nicely till few weeks ago.

All issues are downloaded correctly but when i try to get the worklogs i get this:

{"self":"https://api.tempo.io/core/3/worklogs/issue/XX-123?offset=0&limit=50","metadata":{"count":0,"offset":0,"limit":50},"results":[]}

Checking the website i can clearly see worklogs on the issues but when i try to download them i get none.

I tried using different users or give the users more rights and also to regenerate the Tempo API Integration token.

Or to use the same jira user for the api who created the worklogs.

Only change i made was to replace the logic how i get access and refreshtoken from the response. I used regex (dont ask me why) and changed it to deserializing the json from the response into a object and using the properties.

Ideas and some help would be very welcome.

Edit:

This downloads some worklogs of some issues but not of the issues i want the worklogs.

worklogs?updatedFrom=2023-01-01&offset=0&limit=1000

1 answer

1 vote
Rol
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!
June 12, 2023

Found the mistake.

The jira user who was used for the Tempo API Settings (Apps\Tempo\Settings\API Integration and OAuth 2.0) was removed from certain projects.

So as a consequence the worklogs of this projects where invisible to the API GET because permissions work as designed.

Dave Rosenlund _Trundl_
Community Champion
June 12, 2023

Really cool that you found the problem on your own, @Roland Eisenhuber  😎

And thank you for sharing the solution with the community!

Best,

-dave

Suggest an answer

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

Atlassian Community Events