Forums

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

Get issues by project key with all work logs

nttinhcmus
February 18, 2020

Hey guys, I am using JIRA api version 7.6.1 on method GET /rest/api/2/search.

My problem is the number of work logs received is only 20 as default.

Is there away to get all work logs inside an issue. As In the image I have 25 work logs for the issue but can get only 20.

 

"id": "15430",
"self": "",
"key": "DHC-157",
"fields": {
"summary": "Display Payment Plan in Cart",
},
"worklog": {
"startAt": 0,
"maxResults": 20,
"total": 25,
"worklogs": [
{
"self": "h8",
"author": {

Thanks

2 answers

1 accepted

2 votes
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.
September 21, 2015

Quite simply - do not remove them.  They have to be there to support the values in the fields. 

Disable the options you don't want to see any more, as you were told the other day when you asked a similar question.

Jirong Hu
Contributor
September 21, 2015

I've done some testing, Disable is exact what we want. I forgot I've posted another thread. Thanks.

0 votes
Timothy
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.
September 21, 2015

The question is how shall we handle the "Remove"? What's the best way to achieve this? Is there a way to keep the field value in the existing records when an entry is removed from the list?

When you remove the Option, you are removing the Option object. That's why all Issues will lose that value. Probably you can copy that value to another field using a custom listener to listen to a change on that field.

Suggest an answer

Log in or Sign up to answer