Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Split Issues summary into subtasks

Ražošana 3D
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 15, 2023

Hey, I wanted to set up small automation but unfortunately don't have the expertise to do it myself, maybe someone could help?

The task is created by pulling information from API and the goal is to see if the task summary contains one item or an array of items and if so, separate them into multiple subtasks

To check if the task is an array I could use ISSUE FIELD CONDITION and check if the task summary contains ","

The task is created with the name :
A , B , C


The goal is to create subtasks for all objects in the array :
A
B
C

Is there a function that could do it?

 

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Champion
June 15, 2023

Hi @Ražošana 3D and welcome to the community.

You'll want to leverage the "Split" smart value.  It would work something like this:

  • TRIGGER: Issue Created
  • BRANCH (Advanced)
    • {{issue.summary.split(",")}}
      varSummary
    • ACTION: Create Issue
      • Issue Type: Sub-Task
      • Summary
        • {{varSummary}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events