プロジェクト

全般

プロフィール

Vote #71236

未完了

Secondary sorting after sorting by parent task

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

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

0%

予定工数:
category_id:
2
version_id:
0
issue_org_id:
10048
author_id:
48409
assigned_to_id:
0
comments:
24
status_id:
1
tracker_id:
1
plus1:
14
affected_version:
closed_on:
affected_version_id:
36
ステータス-->[New]

説明

I've created a custom query with two sort orders: 1) Parent task - Ascending (as I want my subtasks be grouped visually together), 2) Updated - Descending (as I want to see the most recently changed tasks at the top).

What I would expect is that

all the tasks without parents would be sorted by their "Updated" value;

all the subtasks within the same parent task would be sorted by their "Updated" value.

As can be seen in the attached screenshot, the actual result in the example of "http://www.redmine.org/projects/redmine/issues" is all the non-parent tasks sorted by their IDs.

All the versions to be submitted along with a bug reports, please take from the current http://www.redmine.org installation, where I'm submitting the defect in. The test screenshot is taken from here.

!redmine-sorting.png!


journals

I am seeing the same problem. Sort of curious what is going on with this one as it is fairly critical for my implementation.
--------------------------------------------------------------------------------
Please check my plugin - it solves this behavior:

http://www.redmine.org/plugins/redmine_smart_issues_sort

--------------------------------------------------------------------------------
+1
We have the same issue. It's problematic as I want to sort issues by priorities, but still have the subtasks grouped under their parent.

--------------------------------------------------------------------------------
+1
Parent, Priority just ignores the latter.

--------------------------------------------------------------------------------
+1. This is indeed very essential to be in Redmine.
--------------------------------------------------------------------------------
+1 vote for it
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1 I have this problem too
--------------------------------------------------------------------------------
Any news on this?
redmine_smart_issues_sort wouldn't run on 2.3, saying:
undefined method 'issues' for class 'Query'
on line 12 lib/query_patch.rb

Any clues are most appreciated.
Zdravko
--------------------------------------------------------------------------------
Well, i have the same issue, a custom query with "Parent task" as first sort field, the second field is ignored, whatever it is. The result look like the second field is set to 'Created'.

The same issue exists when sorting issue by clicking on columns : After adding the 'Parent Task' to the issue view, I click on "Updated" for example, and then on 'Parent Task', the previous 'Updated' order is completely lost.

By the way, the gantt view with the same query seems to work right.

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

--------------------------------------------------------------------------------
+1 causing us a problem and the patch doesn't seem compatible with v 3.1
--------------------------------------------------------------------------------
+100

I'm getting more and more complains about this. We have thousands of issues per project organized in a tree structure and this defect is very, very painful.
--------------------------------------------------------------------------------
+1, having the same issue, same use case. I would think this should be a simple fix... but I haven't looked at the code
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
plugins and patches no longer work
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Confirmed here as well; when 1st ordering is for parent issue, ties (i.e. no parent or same parent) are not resolved using any following filter which makes tree-like views practically impossible.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1

This is problematic, the secondary sort would be really useful, while still maintaining the parent structure.
--------------------------------------------------------------------------------
In case it is useful for anyone else.

After waiting for this to be implemented I finally made my own solution.

You can find it here:

https://github.com/txemi/redmine_sorted_tree

It is an small development that creates an extra index that you can use to get hierarchical tree and allows use aditional sorting criterias for deep issues in tree.

It helps me to get human reports sorting issue tree as I want.

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


related_issues

relates,New,7907,Display Issues in a hierarchy (tree)
duplicates,Closed,14432,Sorting issues with subtasks
duplicates,Closed,20123,Can't sort by multiple fields when sorting by parent
duplicates,Closed,31840,Sort by Parent does not work as expected
duplicates,Closed,34818,Do not display in the order set in the custom query!

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

いいね!0
いいね!0