Forums

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

Worklog Pagination

Narti Kitiyakara
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 10, 2017

I'm trying to use the JIRA Cloud API to generate Excel timesheets for my people.  I can list the issue for each person with the search api, but I don't see a way to control the pagination of the worklog items within those results.  I also tried taking that list of issues and trying to get the worklog with a URL like https://{company}.atlassian.net/rest/api/2/issue/{key}/worklog.  This gives me the information I want, but the results look like they could be paginated.  I don't currently have an example with more than about 80 worklogs, so I can't be sure if the results are paginated or not.

I therefore have two questions:

  • Are the results of getting an issue's worklog in this manner actually paginated?
  • If so, how does one control the pagination?  I tried adding startAt and maxResults parameters (which work for the search api), but they didn't do anything to the worklog list.

Thanks.

 

2 answers

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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 Champions.
July 1, 2013

No.

The reason I've given a flat "no" here is that I've seen this implemented in all sorts of ways... and they all end up editing the workflow in the long run. Which means loads of ways to show "roadblocked", but none of them sticking with the default workflow.

The reason is simple - an issue that is "blocked" in some way is almost always best represented with a specific status meaning "we'd work on it if we could, but we can't". Even the places that started out and stuck with a more simple flag (e.g. a label or custom field saying "roadblocked", or a link to an issue that is blocking it ) ended up wanting to use the flag to say "cannot progress this", which leads to a condition on the workflow.

Also, you'll find most people want a clear and distinct way to show "blocked", because it can't be "in progress", "resolved", "open" etc when it's blocked - it's a very different state of play.

That said, I really do mean the workflow edits can be very very simple - add a step for "blocked", add in a couple of transitions in and out. Done.

0 votes
Harry Chan
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 Champions.
July 1, 2013

Hi, as Nic said no, but if you really need references, do a search on https://marketplace.atlassian.com for similar workflows that might meet your needs.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events