Child tasks to an issue?

It would be helpful if I could have "child tasks" related to a parent project.  Do you know if this is possible, and if so, how to do it?
6 comments
Comment actions Permalink
I know how to have a separate YouTrack task as 'related to' a task, but this is not my goal here.
0
Comment actions Permalink
Hi,
you can set a parent-task relation between issues instead of "related to". Use command window or toolbar to set a "parent for" or "subtask of" relation. In a tree view you will see a hierarchy of this issues.

Regards,
Alexander
0
Comment actions Permalink
Thank you!

Is there a way to do the numbering so that if it's a child of project xx-21 the child task would be xx-21-2 (or something similar) instead of xx-22?
0
Comment actions Permalink
Unfortunately it's not possible. As a little help you can automatically (with custom workflow) add a tag to a child task to have visual presentation. In your case it may works this way:
  • you set relations parent-child
  • custom workflow automatically create/set tag to the children ( xx-21-2, for instance).

Regards,
Alexander
0
Comment actions Permalink
Alexander

Thanks Alexander.

Do you know how I can get info on how to create a custom workflow to set that tag?  I have youtrack workflow editor, but I'm not sure how / where to edit within it to set the tag to do -2, -3, -4... etc.
0
Comment actions Permalink
Hi tpark,

the following workflow gives numbers to children as tags:
rule Children numbering 
 
when parent for.added.isNotEmpty { 
  var childNumber = 0; 
   
  for each child in parent for { 
    childNumber = childNumber + 1; 
  } 
   
  for each newChild in parent for.added { 
    newChild.addTag(getId() + "-" + childNumber); 
    childNumber = childNumber + 1; 
  } 
}
prettyPrint();

Does it cover your case?
children-numbering.zip (2.3KB)
0

Please sign in to leave a comment.