プロジェクト

全般

プロフィール

Vote #78071

完了

Make Spent time clickable in issue lists

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

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

0%

予定工数:
category_id:
58
version_id:
119
issue_org_id:
24649
author_id:
80618
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

In Issue lists, User, Version or Project fields are clickable to take the user to the relevant page, and not to the issue page itself.

It would make sense to also make the Spent time values clickable to take the user to the details of the logged time.

A patch to do it is attached.


journals

Thank you for submitting the patch but it cannot be applied cleanly to the current trunk (r16111).
source:trunk/app/helpers/queries_helper.rb@16101#L192

--------------------------------------------------------------------------------
OK, in that case, the patch would be as attached (sorry, I'm using Mercurial, so I'm a bit behind the subversion commits)
--------------------------------------------------------------------------------
Since the patch by Olivier Houdas cannot be applied to the current trunk (r16166) for the following reasons, I have updated the patch.

* The variable name "issue" was renamed to "item" by #24643
* @issue_time_entries_path@ for GET request has been droped in r15644

And changed link destination for "Spent time" and "Total spent time".

* "Spent time" -> @/projects/xxx/time_entries?issue_id=nn@ (Issue is #nn)
* "Total spent time" -> @/projects/xxx/time_entries?issue_id=nn@ (Issue contains #nn)

--------------------------------------------------------------------------------
I suggest including this feature in Redmine 3.4.0.

---

*Clickable spent time in issues list:*
!spent-time-clickable.png!

---

*After clicking on spent time:*
Users are navigated to: /projects/xxx/time_entries?issue_id=nn (Issue is #nn)
!after-clicking-spent-time.png!

---

*After clicking on total spent time:*
Users are navigated to: /projects/xxx/time_entries?issue_id=nn (Issue contains #nn)
!after-clicking-total-spent-time.png!
--------------------------------------------------------------------------------
Related: #20661
--------------------------------------------------------------------------------
Patch committed, thanks.
--------------------------------------------------------------------------------

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

いいね!0
いいね!0