Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346278

Summary: subtasks can get more than one category assigned
Product: z_Archived Reporter: Jörg Thönnes <jtk499>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: major    
Priority: P2 CC: steffen.pingel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screen shot with three categories selected
none
Screen shot of Task List (Categorized view) none

Description Jörg Thönnes CLA 2011-05-18 11:18:18 EDT
Somehow I managed to get a Trac task with two categories.
I do not remember the exact steps, but after restart this behaviour stays permanent.

In addition, I cannot revert this. At least two categories stay sticky. Optionally, I can select
a third one. While I may consider this as a step into the correction direction, see:
* bug 168363: provide mechanism for starring/tagging/bookmarking a task
the implementation is a bit incomplete :-)

Will attach some screen shots.

h1. Versions

* Tasktop 2.0.1

-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.mylyn_feature 3.5.1.v20110422-0200
Comment 1 Jörg Thönnes CLA 2011-05-18 11:25:11 EDT
Created attachment 195989 [details]
Screen shot with three categories selected
Comment 2 Jörg Thönnes CLA 2011-05-18 11:35:28 EDT
Created attachment 195991 [details]
Screen shot of Task List (Categorized view)

Here you can also see that task 5529 is a sub-task of task 5526 (which has no special features).
And the task is listed in all three categories.

In addition, the Tasktop working sets also honour this. The task appears in three sets with disjunct categories.
Comment 3 Jörg Thönnes CLA 2011-05-18 11:36:17 EDT
The Trac task with this special behaviour is a sub-task of another trac ticket.

Tasktop Associations: The parent task is not recorded in this section (should be).

Is there any way I could export this task in order to attach it here? At the moment, I would not like to change too much
in order to keep this task as reference.

Waiting for further instructions to proceed...
Comment 4 Steffen Pingel CLA 2011-05-18 11:42:02 EDT
Thanks for the screenshots, Joerg. It's not necessary to attach the task. I'll try to reproduce locally with the given information but it would help if you have any other hints how the task was assigned to the categories.
Comment 5 Jörg Thönnes CLA 2011-05-18 11:55:22 EDT
(In reply to comment #4)
> Thanks for the screenshots, Joerg. It's not necessary to attach the task. I'll
> try to reproduce locally with the given information but it would help if you
> have any other hints how the task was assigned to the categories.

OK, I cannot recollect fully, but I created this Trac task using the "Create a new sub-task" button.
Normally, I select the category immediately at creation or not too much later, so I think the sub-task
was created from a Trac task which already had a category set.
Comment 6 Jörg Thönnes CLA 2011-05-18 11:58:28 EDT
Looking more closely on the second screen shot reveals that the given task 5529 is
a sub-task of 5526 belonging to "5:Later" and 5527 belonging to "1:NA*".

Somehow the category is inherited from the parent tasks. In addition, I can set a 3rd category.
Comment 7 Jörg Thönnes CLA 2011-05-18 12:01:41 EDT
(In reply to comment #6)
> Looking more closely on the second screen shot reveals that the given task 5529
> is
> a sub-task of 5526 belonging to "5:Later" and 5527 belonging to "1:NA*".
> 
> Somehow the category is inherited from the parent tasks. In addition, I can set
> a 3rd category.

Now I removed the dependency on the 5527 task and the category "1:NA*" is gone.
Comment 8 Steffen Pingel CLA 2011-08-26 08:59:16 EDT
Steps:
1. Create two categories A and B
2. Create a task, assign to A
3. Create a subtask

The editor shows the subtask as Uncategorized but the context menu now shows that the subtask is in A.

Other steps:
1. Add repository task to category A
2. Create new subtask
3. Submit subtask
4. Assign subtask to category B

The subtask now shows two categories, A and B.

This needs to be fixed.
Comment 9 Jörg Thönnes CLA 2011-11-24 05:19:29 EST
Since I use categories to move tasks from one Task Workings set (e.g. Next Actions) to another (e.g. Waiting For),
this is quite annoying. Instead of specifying the category on the sub-task, where it is "added" to the category
inherited by the parent task, I have to change category on the parent task.

The intended work flow is not clear here.

Any plans how it _should_ work?
Comment 10 Jörg Thönnes CLA 2012-02-07 10:24:56 EST
Hello Steffen, do you see any easy way to correct this?

As explained above, I implemented my GTD workflow based on the categories. But bug prevents me
from correctly assigning categories to sub-tasks.
Comment 11 Steffen Pingel CLA 2012-02-08 09:05:48 EST
I haven't had a chance to investigate a fix. I'll schedule the bug for next week but I can't promise that I'll get to it.
Comment 12 Jörg Thönnes CLA 2012-02-13 08:46:56 EST
OK, thanks.
Comment 13 Jörg Thönnes CLA 2012-03-05 07:23:02 EST
For me this is a constant annoyance. I will explain you why:

Implementing the GTD (Getting Things Done) principle I manage tasks in different categories "NA" (Next Actions)
and "W/F" (Waiting For). So it may happen that the main task should be in "NA", but one of the sub-task is in
"W/F" because I am waiting for other peoples work. This cannot be implement with the current behaviour.
So finally I end up having all sub-tasks in "NA".

In some other comments I also said, that JIRA "Relates to" links could be also implemented as sub-tasks.
Possibly, I was wrong there.

Steffen, do you see any chance to get something useful checked-in for 3.7?

Thanks, Jörg
Comment 14 Jörg Thönnes CLA 2012-03-05 09:05:49 EST
Another "real life" examples using JIRA:

Consider you have the following task relations with two JIRA repositories:

SUPPMACD-780 is a sub-task of SUPPMACD-762
SUPPMACD-762 relates to DEVTS-300 and DEVTS-365
DEVTS-300 relates to DEVTS-365

If you start at SUPPMACD-780 and "Set Category" shows to you that both "NA" and "W/F" are set, the big
question is: What is the category of the "parent" task? You can identify the parent task by two properties:
1. It has only one category set.
2. If you change this category, the old category is unset.

While sub-task have the properties
1. One or two categories may be set.
2. If you change the category, one category remains sticky (cannot be changed).

So the quest for the parent task starts, finally ending at SUPPMACD-365.

This is really painful, since the category of DEVTS-365 effectively forces all the other tasks to have the same one.

I have a faint memory that I could change the behaviour of "linked" tasks for JIRA, so that only real sub-tasks take
part in the parent-child-relation...
Comment 15 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn