Workflow help

We currently use YouTrack for our team projects and love its Agile board functionality.  Your newest version has a great deal of new functionality I am experimenting with.  I am currently trying to create workflows and am having some challenges.  I have downloaded the Workflow editor and unable to create the following workflows.

    When a parent issue is moved to done, I want all its subtasks moved to done.
    When I create a new issue, I want some standard subtasks created with them.  (I.e. user story with standard tasks)
    When a story in development is done, I want the state of the story to change to testing.

I have visited the site:  https://github.com/JetBrains/youtrack-workflows but did not see any workflows which would help me in starting to create these.  

Do you have any insight into how I can create any of these or any other resources that could help?  I think these would prove quite useful for other teams as well.  

Any help you can provide would be greatly appreciated.
1 comment
Comment actions Permalink
When a parent issue is moved to done, I want all its subtasks moved to done.

This feature can be implemented by the following workflow:
rule Complete subtask 
 
when State.becomes({Done}) { 
  for each subtask in parent for { 
    subtask.State = {Done}; 
  } 
   
}
prettyPrint();

When I create a new issue, I want some standard subtasks created with them.  (I.e. user story with standard tasks)

rule Default subtasks 
 
when becomesReported() && Type == {Feature} { 
  var subtask1 = loggedInUser.createNewIssue(project.shortName); 
  subtask1.summary = "Subtask #1 of " + getId(); 
  subtask1.State = State; 
   
  var subtask2 = loggedInUser.createNewIssue(project.shortName); 
  subtask2.summary = "Subtask #2 of " + getId(); 
  subtask2.State = State; 
   
}
prettyPrint();

When a story in development is done, I want the state of the story to change to testing.

Please clarify "a story in development is done".

Please see also http://confluence.jetbrains.com/display/YTD6/Workflow+Language+Quick+Reference
0

Please sign in to leave a comment.