Forums

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

JQL API responce issue fields does not include worklog?

marijn peppelman
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!
March 11, 2022

Hey all,

 

I'm retrieving issues from a user using the JQL functionality, and while the fields section of the returned issues hold a lot of information, this does not seem to include the worklog?

I'm making some code to do analysis on the time spent  on issues by project members, and was getting all issues with work logged by a project member through the JQL query so i can do the processing client side. I can get the work logs of each individual issue, but I wanted to reduce API calls.

1 answer

1 accepted

0 votes
Answer accepted
Ravi Sagar _Sparxsys_
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.
March 11, 2022

Hi @marijn peppelman 

Well, yes you will have to make at least 2 calls. Usually the end point rest/api/3/issue/ABC-123 or rest/api/3/issue/ABC-123/worklog will give you worklog but that is for a specific issue not for a list of issues returned by rest/api/3/search?jql=

Ravi

marijn peppelman
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!
March 11, 2022

Well, alrighty then.

If that's the method to use, then that is the method to use.

Hope you don't mind a bit more workload on the rest/api/3/issue/ABC-123/worklog endpoint then :-).

Suggest an answer

Log in or Sign up to answer