Forums

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

how can i get all the worklogs of all the user, using tempo REST API version 3?

Abhishek Gelot
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!
August 25, 2019

I need all the work logs of all the projects. is there any way to get this by using work log API? what I have to pass to get the log of all users.

I tried to pass project=project-key but it was only showing a log of the project in which I was added , if i pass a different project-key in which i was not added, then it gives me this,

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

1 answer

0 votes
DPKJ
Community Champion
August 25, 2019

In above API you can pass muitiple project key.

https://api.tempo.io/core/3/worklogs?project="AAA"&project="BBB"&project="CCC"

So you can find worklog of all users for all projects by passing all project key in API.

Abhishek Gelot
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!
August 26, 2019

okay, thanks. @DPKJ  but what if I'm not in project 'BBB'?

I'll not get the work log of that project.

I'm only getting work log for those project in which I'm added.

DPKJ
Community Champion
August 26, 2019

This is permission issue, API will only allow you to read worklog of projects that your are part of.

You can try this API via admin to test if it return complete list of worklog.

Also try this user specific api, i.e.

https://api.tempo.io/core/3/worklogs/user/{accountId}
Like Abhishek Gelot likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events