Forums

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

How to get a special amount of worklogs through the Jira API

tomdpd tomdpd July 13, 2020

if i do the following get call 

 

http://URL/rest/api/2/issue/85200/worklog

 

i will get a awnser like this:

 

{
"startAt": 0,
"maxResults": 12,
"total": 12,
"worklogs": [...]

}

 

is there a way to manually set the maxresults to a specific number?
Now i will always get the max result.

 

I want to start at a specific position and set the maxresults.

 

I tried it like this, but it did nothing.

 

http://10.5.150.35/rest/api/2/issue/85200/worklog?maxResults=1&startAt=1

http://10.5.150.35/rest/api/2/issue/85200/worklog?jql=maxResults=1&startAt=1

http://10.5.150.35/rest/api/2/issue/85200/worklog?jql=fields=maxResults=1&startAt=1

1 answer

0 votes
Alex Koxaras -Relational-
Community Champion
November 2, 2022

Hi @tomdpd tomdpd 

According to this documentation https://docs.atlassian.com/software/jira/docs/api/REST/7.1.2/#api/2/issue-getIssueWorklog, the first method should work for you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events