プロジェクト

全般

プロフィール

Vote #77107

完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
110
issue_org_id:
21757
author_id:
33604
assigned_to_id:
1
comments:
10
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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.


journals

I would be glad if rejected child issues could be excluded from sum of estimated hours.
--------------------------------------------------------------------------------
Please try this patch: attachment: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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,14717,API value for spent_hours does not include the sum of the spent_hours of the subtasks
duplicates,Closed,22831,Rest api no longer return estimated time ,hours spent for master tickets

Admin Redmine さんが約4年前に更新

  • カテゴリREST API_32 にセット
  • 対象バージョン3.3.0_110 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0