Defect #6320

Subtasks do not appear under parent task in Issues view

Added by Joonas Pulakka almost 9 years ago. Updated 14 days ago.

Status:NewStart date:2010-09-07
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution: Affected version:1.0.1

Description

When adding subtasks to issues (from the main issues/xx view using "Add subtask"), the subtasks do appear in the Subtasks view of that issue. Also the subtasks themselves seem to have the parent task number defined as they should.

However, in the main "Issues" view the subtasks appear as individual tasks, not as indented rows under the parent task as they should.

  • Database version: MySQL 5.0
  • Ruby version: 1.8.7
  • Rails version: 2.3.5 (the one that came with Redmine in the vendor/ directory)

I'm using the Backlogs plugin (http://www.redminebacklogs.net/). It required database migration (http://www.redminebacklogs.net/en/installation/) - possibly it could have messed up something? But talso #6251 is some kind of sub-parent-task relation issue in 1.0.1.

subtasks_tree_in_issues_list.PNG - Working shot on trunk (7.65 KB) Etienne Massip, 2011-04-01 11:34

redmine-subtask-grouping-issue-1.png - By sorting ID - Descending (50.5 KB) Adam M, 2011-05-18 17:50

redmine-subtask-grouping-issue-2.png - By sorting ID - Ascending (48 KB) Adam M, 2011-05-18 17:50

4-redmine_subtask_bug_sorted_by_start_date_reverse.png (49 KB) pedro apero, 2017-09-29 17:48


Related issues

Related to Redmine - Defect #12846: sub-issues being rendered under wrong parent issue New
Related to Redmine - Feature #7907: Display Issues in a hierarchy (tree) New 2011-03-17
Duplicated by Redmine - Defect #22306: Bad dispalay of the issues having parent issue Closed

History

#1 Updated by Siu Siu almost 9 years ago

Same here, with almost fresh installation.

#2 Updated by Siu Siu almost 9 years ago

I've noticed that subtasks are correctly indented when the issue table is ordered by id in ascending mode:

#3 Updated by Jeffrey Stone almost 9 years ago

I'm also seeing this with a fresh install of 1.0.1

#4 Updated by Thomas Fürlinger almost 9 years ago

same here

#5 Updated by Dmitry Nemov almost 9 years ago

The same problem, fresh install 1.0.1 (stable)

#6 Updated by Karel Král almost 9 years ago

The same problem, fresh install 1.0.1 (stable)

#7 Updated by Greg Parker almost 9 years ago

If you add "parent task" as a column. You can then sort by parent task and the items are grouped properly. This is the only way I found to get it to work.

#8 Updated by Terence Mill almost 9 years ago

same here

#9 Updated by Damien Couderc over 8 years ago

Same here.
It would be nice if there was a grouping option to get the same result than Greg (#7).

#10 Updated by Ryan H about 8 years ago

It would appear that it doesn't work in the following situation:

Create Issue #1
Create Issue #2
Create Issue #3 with parent issue #2

It shows the following:
Issue #1
Issue #2
- Issue #3

Now change Issue #1 to have parent Issue #2.

It shows the following:
Issue #1
Issue #2
- Issue #3

The issues view should show it like this:

Issue #2
- Issue #3
- Issue #1

#11 Updated by Etienne Massip about 8 years ago

Can't reproduce on trunk :

Working shot on trunk

#12 Updated by Adam M about 8 years ago

This issue does exist...
Using Redmine 1.1.3 on a Bitnami Stack
I've also used Redmine 1.0.1 on a Cent OS environment.

Please see attached images; for privacy reasons, I've censored some content.

Also there's no way to save a query to sort by ID that I can see in 1.1.3.

#13 Updated by Adam M about 8 years ago

Adam M wrote:

This issue does exist...
Using Redmine 1.1.3 on a Bitnami Stack
I've also used Redmine 1.0.1 on a Cent OS environment.

Please see attached images; for privacy reasons, I've censored some content.

Also there's no way to save a query to sort by ID that I can see in 1.1.3.

I'd like to clarify this issue was occurring on both versions I've used whether it be a clean install or not.
I am not sure if it could maybe be an issue with created and saving a query?

#14 Updated by Etienne Massip about 8 years ago

Adam M wrote:

This issue does exist...
Using Redmine 1.1.3 on a Bitnami Stack

See Greg Parker's note (note 7), you should not sort on Id but on Parent task column.

#15 Updated by Pedro C almost 8 years ago

I can confirm this bug, the task appears wrong inside parent task details too, when editing parent on children task the id is correct.

Because of this bug I can have a correct report on a important project.

#16 Updated by Jonathan Chen about 7 years ago

I'm on version 1.3.1 and I am having the same issue where in the issue and on the gantt it is shown correctly, but in the issue view it is shown incorrectly. It mainly happens whenever I create the issue and put in the parent task at the same time of creation.

#17 Updated by Carsten Weise over 4 years ago

Same here, on redmine 2.6.0-2.
There is a logic behind this: tasks are ordered either ascending or descending
Indention only works, if a subtask has a number greater/less than the parent task, depending on asc/desc
It would be nice if we had a mode that orders asc/desc, but gives precedence to the subtasks of a task

#18 Updated by Toshi MARUYAMA over 4 years ago

  • Category set to Issues

#19 Updated by Toshi MARUYAMA over 4 years ago

  • Related to Defect #12846: sub-issues being rendered under wrong parent issue added

#20 Updated by Toshi MARUYAMA over 4 years ago

  • Related to Feature #7907: Display Issues in a hierarchy (tree) added

#21 Updated by Mateusz Zająkała over 4 years ago

I have the same problem, redmine 2.5.2-stable.

On one project's issue list some issue hierarchies (parent+subtasks) are displayed correctly, while others are not. In both cases children IDs are larger than parent ID (created later), I can't figure out what are the differences between working hierarchies and those displayed separately.

One hint would be that where children are displayed correctly with indentation the parent tracker is "Feature" (children are "Tasks"), while where they are displayed as separate items on the list the parent is also a "Task". But I tried changing its tracker to "Feature" and it does not help. Also tried sorting by any column (asc or desc) - always the same result.

#22 Updated by Toshi MARUYAMA over 3 years ago

  • Duplicated by Defect #22306: Bad dispalay of the issues having parent issue added

#23 Updated by Stefan Lindner over 2 years ago

+1

#25 Updated by pedro apero over 1 year ago

I confirm having the same issue on version 3.3.0.
Sorting by parent issue does not help.
Sorting by start date fix the display issue. Ordering matters.

Unsorted (by priority with same priority for all issue):

Sorted by parent task:

Sorted by starting date:

Sorted by starting date in reverse order:

#26 Updated by Claudio Negri 18 days ago

+1

#27 Updated by Feh Mi 14 days ago

+1. I have the same problem.
Strange enough in a )simple) project, I can see the sub taskes listed under parent issue. However in a complex one, I don' t see it.
Environment:
Redmine version 4.0.2.stable
Ruby version 2.3.3-p222 (2016-11-21) [x86_64-linux-gnu]
Rails version 5.2.2
Environment production
Database adapter PostgreSQL

Also available in: Atom PDF