Forums

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

Query worklogs for the last 4 weeks for all users

armindom July 19, 2019

I am struggling to get a simple result on a worklogs for all users for the last 4 weeks ( separated by week) when using the jira or tempo API. 

 

Tried some combinations of issue.function and worklogs.

example: used issueFunction in worklogged("after startOfweek(-4)")

  This is probably simpler than what I am making it but can anyone drop some help?

 

thanks 

1 answer

1 accepted

0 votes
Answer accepted
Warren
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.
July 19, 2019

Hi @armindom 

If you look here, you can use

http://{JIRA_BASE_URL}/rest/tempo-timesheets/3/worklogs/

and pass in the parameters dateFrom and dateTo, which should give you what you're after

armindom July 19, 2019

Thanks warren.. but apparently that returns only my (the authenticated user) worklog.. not everyone's. 

Warren
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.
July 21, 2019

Hi @armindom 

That's correct, Tempo has a setting under Team, Permissions which will need to be set to allow you to see everyone's timesheets, otherwise you'll only get your own.

Like armindom likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events