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

3 answers

1 vote
david
Atlassian Partner
May 31, 2016

Hello Otto, having custom fields at Project level is possible and easy with "Profields" Add-on, it fits exactly with the need you have. Right now is available on the Marketplace for Server instances and Cloud will be ready soon. You can have a free trial. This is the link: https://marketplace.atlassian.com/plugins/com.deiser.jira.profields/server/overview

Kind regards,

David

0 votes
Hung Nguyen
Contributor
March 1, 2016

Project Key is the only thing that is closest to what you need. It is exactly specific to each project and affect all the issues in that project. You also report using it too.

What prevent you from using Project key for that purpose?

Otto Kalliomäki
March 1, 2016

We tried using a custom field called "Project Number" in our issues, but a part of our organization would like to have a custom number field at the project level. The project key is used to index our projects in a different manner. Is getting a plugin such as ProFields the best way to get a custom number field value attached to each project?

Thanks for the responses smile ! 

0 votes
Joe Pitt
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.
March 1, 2016

Fields are related to issues, not projects. The closest thing I can think of is to create a custom field named Project Number, create a context for each project, and set the default for each project to the value in the context. Put it only on the view screen for each issue type and no one will be able to edit it.

Otto Kalliomäki
March 2, 2016

Intriguing! Could you point me into the right direction on how to create this sort of context and make default values for various projects? Also, how would you think this would show up in different reports?

Joe Pitt
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.
March 2, 2016

Check out this. About half way down the page is the section about context.

https://confluence.atlassian.com/jira/configuring-a-custom-field-185729468.html

Otto Kalliomäki
March 3, 2016

Ok, so in essence:
Create a Custom Field, Configure a context for each project and add a default value affecting each issue in that project, which in this case would be a numerical value.
I will try this out and see what kind of reports this would allow. A part of our organization would need to generate reports based on this value and see the logged hours.

Thanks a bunch for the expertise Mr.Pitt! 

Suggest an answer

Log in or Sign up to answer