Forums

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

Automation to copy description from one subtask to another in same parent task

Jeremy Branby
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!
March 23, 2023 edited

Hi,

I am looking to find information on how to copy the description from one subtask to another within the same parent task. 

Little background. We are automating the creation of subtasks using JSON. This data is imported into Jira and creates the subtasks but also provides the relevant URL and additional information in the description of each subtask (URL and information is different for each subtask).

How could I have a single subtask that could copy the description from each subtask created through the JSON data and house all of the URL and additional information within it?

1 answer

1 accepted

0 votes
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 23, 2023

Hi @Jeremy Branby and welcome to the community!

If I'm understanding correctly, you're trying to create a sub-task that will continuously concatenate the Description field from JSON generated sub-tasks.

If I'm correct, this could work like this:

First, you'd need to leverage some type of tag (label, component, custom field) to differentiate the aggregate sub-task from the ones created by JSON.  I'll use a component called "Master" for my example:

  • TRIGGER: Issue Created
  • CONDITION: Issue Type = Sub-Task
  • CONDITION: Component NOT IN Master
  • BRANCH (JQL)
    • Parent = {{issue.Parent}} AND Component IN (Master)
    • ACTION: Edit Issue (Description)
      • {{issue.Description}}\\ ---- \\{{triggerIssue.Description}}

This will trigger any time a new sub-task is created where the component is not Master.  Then searches for the Master sub-task and appends the new sub-task description at the bottom. \\ ---- \\  should separate descriptions with a horizontal line.

Jeremy Branby
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!
March 24, 2023

Hi Mark, 

Thank you for the suggestion, I tested this out and it was able to work. Thank you!!

Like Mark Segall likes this

Suggest an answer

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

Atlassian Community Events