When I create an Epic with a description like the following:
Here are the tasks we need to accomplish within this epic:
% change security group on elektrac
% change security group on dev
% change security group in staging
% change security group in production
You will note that there is some introductory verbiage in the first line, followed by a variable number of lines (each beginning with "% "). What we want to automate is, triggered by the creation of the epic, having the lines beginning with "% " become the summary lines for new tasks that are automagically created within the same project and under that epic.
I want each line in the description that begins with "% " to become the summary line for a new task created within the same project (preferably without "% " in the summary, but that's not an important issue now). I would not want the first line in the Epic description (which does not begin with "% ") to be used to create a task.
So:
Epic
|------------|
| description |
|------------|
spawns:
Task
|----------------------------------------------|
| summary: change security group on elektrac |
|----------------------------------------------|
Task
|----------------------------------------------|
| summary: change security group on dev |
|----------------------------------------------|
Etc.
So far I have:
+ When: Issue created
Issue Type equals Epic
Description is not empty
Create Variable {{epicTasks}} from Smart Value {{issue.description}}
Branch
For each: Smart value: {{epicTasks.split("\n")}} (OR {{epicTasks.split("% ")}}) Variable name: bunchOfTasks
+ Then: Create a new Task in Same project with Summary {{bunchOfTasks}}
This does run and creates a bunch of tasks under the same project, but it also creates a task for that first line in the epic's description. I haven't found a way to get it out of there.
Also, I'd like to set the Parent field to the Epic, but however I try to do it, it tells me that it's not an object (?!)
Could anyone help me figure how to refine this?