Project

General

Profile

Actions

Feature #6116

open

Group sub-tasks with parent on issue list

Added by Jeffrey Jones about 14 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
2010-08-12
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

My colleagues have starting re-arranging their issue lists now that we have subtasks and every single one of them has asked how they can change the issue listing to make it obvious at a glance which subtasks belong to which issue.

Having this ability is a critical feature I think to make subtasks manageable.

Something like:

Put all subtasks under their parent tasks in the issue listing.
add a - or > in the issue title as basic indentation.

I imagine this won't be a simple change because it will affect how the table ordering code should work.


Files

issues_default_sort_by_root_id_and_id-1.3.1.patch (542 Bytes) issues_default_sort_by_root_id_and_id-1.3.1.patch patch for 1.3.1 adding root_id desc to default sorting of issues Tomasz Sawicki, 2011-05-17 18:11

Related issues

Related to Redmine - Feature #5325: Add Parent Task to 'Group Results By' drop downNew2010-04-15

Actions
Related to Redmine - Feature #6118: Filter by parent task or subtasksClosedJean-Philippe Lang2010-08-12

Actions
Related to Redmine - Feature #7907: Display Issues in a hierarchy (tree)New2011-03-17

Actions
Has duplicate Redmine - Feature #6816: Group Parent task with subtask underneatClosed2010-11-03

Actions
Has duplicate Redmine - Feature #7696: Allow grouping by parent taskClosed2011-02-23

Actions
Actions #1

Updated by Jeffrey Jones about 14 years ago

Actually looking at it, probably the easiest thing to do would be to use the group by functionality already in the system to group the subtasks

Actions #2

Updated by Xagyg Wulf about 14 years ago

Add "Parent Task" column to the issues list. Sort on parent task column. An arrow is placed for subtasks of a parent and grouped under it.

Actions #3

Updated by Jeffrey Jones about 14 years ago

Aha, that is perfect, just what I want. Apart from the fact that we have to have the parent task column visible which takes up a lot of space we would rather use for other stuff.

A way to get this exact layout without having to have the parent task column visible would be perfect.

Actions #4

Updated by Mischa The Evil about 14 years ago

  • Category changed from Issues to UI
Actions #5

Updated by Alex Last about 14 years ago

there's related task #5275

Actions #6

Updated by Nicolas Connault almost 14 years ago

Jeffrey Lee

What you are trying to do is possible in Redmine 1.0.3. You need to create a custom query that sorts by parent task without adding the parent task column to the list. Here's how to do it:

Above the issues list, there should be 3 buttons: Apply, Clear and Save. These buttons refer to the filters and other options above them. When you click on save, it takes you to the New Query page.

*Name your query (e.g. Sort by Parent Task)
*Tick Public, All projects and Default columns
*Select "Parent Task" in the first drop-down under the "Sort" section, then "Ascending" in the next drop-down to the right
*Add any other sorts or filters (sorting by Priority and/or date submitted is probably useful)
*Click Save

Now this query will be the default view for all issue lists, and hopefully for all users (I haven't tried logging as a different user).

Actions #7

Updated by Nicolas Connault almost 14 years ago

Update: the custom query is available to all users, but is not selected by default. Also, I don't know how to edit or delete a custom query once it has been created. I'm sure it's possible.

Actions #8

Updated by Tomasz Sawicki over 13 years ago

In order to sort by parent task and task id by default (which makes the subtask tree appear) in app/controllers/issues_controller.rb find index method and change

sort_init(@query.sort_criteria.empty? ? [['id', 'desc']] : @query.sort_criteria)

to
sort_init(@query.sort_criteria.empty? ? [['root_id', 'desc'], ['id', 'desc']] : @query.sort_criteria)

Actions #9

Updated by Tomasz Sawicki over 13 years ago

Attached patch for 1.3.1 adding root_id desc to default sort order.

Actions #10

Updated by arthur me over 13 years ago

Patch applies correctly for me. This is an extremely handy feature.

Actions #11

Updated by Lukas Elmer over 13 years ago

+1
arthur me wrote:

Patch applies correctly for me. This is an extremely handy feature.

Actions #12

Updated by Steffen Tischer about 13 years ago

Thanks for that path. It is very useful.
But i have one question: If i set another sort column i can not reset this settings to default sort order.
In my opinion it is useful to reset also the sort setting if i click on "Reset" on top of the list. This button clears all setting except the sort settings.
Is this possible?

Actions #13

Updated by Mischa The Evil almost 13 years ago

Isn't this issue a duplicate of #5325?

Actions #14

Updated by Stefan Lindner over 7 years ago

+1

Actions #15

Updated by Marco Shima over 3 years ago

Mischa The Evil wrote:

Isn't this issue a duplicate of #5325?

No, it's not. This issue is about sorting tickets, #5325 is about grouping tickets.

Actions #16

Updated by Jim Jiminson almost 3 years ago

Tomasz Sawicki wrote:

Attached patch for 1.3.1 adding root_id desc to default sort order.

Is there an easy way to do this for other sorting? Sorting by root_id first seems to invalidate/break secondary sorts.

Actions

Also available in: Atom PDF