Project

General

Profile

Actions

Feature #21757

closed

Add Total spent hours and Estimated hours to the REST API response

Added by Takashi Ichihashi about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
REST API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Due to #20688, the sum of "estimated hours" or "spent hours" became able to be displayed on issue list and details. However, these value are not supported on REST API. I need to get them named "total_spent_hours" and "total_estimated_hours" via REST API.


Files

feature-21757.diff (731 Bytes) feature-21757.diff patch (without tests) Go MAEDA, 2016-01-19 06:32
feature-21757_trunk_r15148.patch (4.48 KB) feature-21757_trunk_r15148.patch Takenori TAKAKI, 2016-03-01 07:20

Related issues

Has duplicate Redmine - Feature #14717: API value for spent_hours does not include the sum of the spent_hours of the subtasksClosed

Actions
Has duplicate Redmine - Defect #22831: Rest api no longer return estimated time ,hours spent for master ticketsClosed

Actions
Actions #1

Updated by Takashi Ichihashi about 8 years ago

I would be glad if rejected child issues could be excluded from sum of estimated hours.

Actions #2

Updated by Go MAEDA about 8 years ago

Please try this patch: feature-21757.diff
Tests have not yet been written.

I would be glad if rejected child issues could be excluded from sum of estimated hours.

I think API should return same values as displayed on web UI. If you want the feature on Web UI, you would be better to create another issue on this site.

Actions #3

Updated by Go MAEDA about 8 years ago

  • Target version set to Candidate for next major release
Actions #4

Updated by Takenori TAKAKI about 8 years ago

I do appreciate Takashi Ichihashi's work. I would be very happy if I could see the feature in Redmine 3.3.0.

I have updated the patch:

  • Compatible with latest trunk (r15148)
  • Added tests
Actions #6

Updated by Go MAEDA about 8 years ago

  • Target version changed from Candidate for next major release to 3.3.0

Works fine for me and passed all tests. Setting target version to 3.3.0.
@Takenori, thanks for adding tests to my patch.

Actions #7

Updated by Jean-Philippe Lang about 8 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Patch committed in r15254, thanks.

Actions #8

Updated by Go MAEDA about 8 years ago

  • Has duplicate Feature #14717: API value for spent_hours does not include the sum of the spent_hours of the subtasks added
Actions #9

Updated by Jean-Philippe Lang almost 8 years ago

  • Subject changed from Total spent hours and estimated hours need to be get via REST to Add Total spent hours and Estimated hours to the REST API response
Actions #10

Updated by Go MAEDA about 7 years ago

  • Has duplicate Defect #22831: Rest api no longer return estimated time ,hours spent for master tickets added
Actions

Also available in: Atom PDF