Rest API call to retrieve all worklog information from all issue keys

Rayno Matthee June 23, 2021

I am trying to use a Rest API call to get worklog information back.

I have noticed online that one can achieve this by specifying a issue key for example

GET https://######.atlassian.net/rest/api/2/issue/SOL-1414/worklog

 

The above work perfectly, but i am interested in retrieving all issue key's worklog information.

Can someone please assist me?

Regards

Rayno

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
June 23, 2021

Hi @Rayno Matthee 

I do not believe that is possible, probably for the same performance reasons that data for all issues cannot be retrieved for JQL with more than 100 issues returned; batching is required.  You may want to try a REST API JQL call to get the issue keys you want and then iteratively call the worklog one.

Best regards,

Bill

Rayno Matthee June 24, 2021

Hi @Bill Sheboy thank you for responding.

 

Let me try your suggested approach using batching rather and include JQL in the api call.

I will let you know how it goes.

Thank you and regards

Rayno

Like Bill Sheboy likes this
Rayno Matthee June 25, 2021

Thank you very much @Bill Sheboy

Your solution worked perfectly.

Have a fantastic weekend.

Like Bill Sheboy likes this
Bill Sheboy
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.
June 25, 2021

Awesome! I am glad that worked for you.  Have a good one!

Like Rayno Matthee likes this

Suggest an answer

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

Atlassian Community Events