Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create Tasks from Epic description parsed into list

Candace Sommer-Van Auken June 12, 2024 edited

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?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events