Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

issues with worklogs of all users within specific period

vladimir_kovalsky
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 20, 2022
verb: GET
endPoint = `/rest/api/3/search`
jql: 'worklogDate >= "2022-04-01" AND worklogDate <= "2022-04-30"'
fields: 'summary,key'
as response to this request I get issues created/changed by me (my email is used in Authorization header) with worklogs with month of April.
question: how to get issues for ALL users in organization? is it about updating jql or using different approach? thanks

1 answer

0 votes
Prince Nyeche
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.
May 20, 2022

Using the JQL search API is the way to go to search out all issue for any user within your organization. Your JQL result depends on other permission or filter factors configured within those projects you're searching. Therefore, understanding what issues your user is able to search within your instance would be help you. Also, you still need to use the issue search endpoint to see the contents of the issue afterward. 

vladimir_kovalsky
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 22, 2022

so if my permissions allow to get any specific issue by requesting 'GET /rest/api/3/issue/{issueIdOrKey}' then why this request gives only a subset of all issues?

Prince Nyeche
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.
May 22, 2022

Again, the JQL results depends on other permissions! If you search through the UI, do you get the same result as the API? My guess is for you to evaluate if you have the permission to view all worklogs within your project and not just your own.

Suggest an answer

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

Atlassian Community Events