プロジェクト

全般

プロフィール

Vote #72310

未完了

Sort attachments by name

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

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Attachments_19
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
19
version_id:
32
issue_org_id:
11543
author_id:
60621
assigned_to_id:
0
comments:
8
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Is it possible to modify one of the controller files to change the sort order of attachments shown in issues and the wiki? They're currently all sorted by the date they were uploaded, but I'd like to sort them by file name because I get various results in the order of files I upload when I do large amoutns (20-30 files) depending on my connection and which browser I use, it starts to make pretty messy lists. It would be nice if there was a feature to set this in the administrator settings as well. I've searched all over and while I have found information about sorting files in other sections of Redmine, I cannot find anything for attachments. I hope this is the right place to submit this.


journals

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

--------------------------------------------------------------------------------
If the patch in #1718 is accepted, we can make use of tablesort js library to implement this feature.
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
I implemented sorting in the attachments list of Issue and Wiki (I referred to #1718). Name, Description, Author, Created can be sorting.
I have attached a patch.

Issue
!{width:600px;border:1px solid grey;}issue.png!

Wiki
!{width:600px;border:1px solid grey;}wiki.png!

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

--------------------------------------------------------------------------------
The following points have been fixed.
* To return the sort order to the initial state, the serial number column is added to the beginning so that it can be sorted.
* The Author and the Created were separated columns, but the Created column cannot be sorted properly because the format of the displayed date-time string changes depending on the setting of My account > Language. Therefore, the Author and the Created columns have been reverted.

!{width:800px;border:1px solid grey;}issue-v2.png!
--------------------------------------------------------------------------------


related_issues

relates,Closed,1718,Table column sorting
relates,New,10709,Upload files view in reverse chronogical order

Admin Redmine さんが3年以上前に更新

  • カテゴリAttachments_19 にセット
  • 対象バージョンCandidate for next major release_32 にセット

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

いいね!0
いいね!0