Create Sub-Tasks automatically based on Story Description

Hizkeel Khan July 31, 2023

Hi Everyone,

I hope everyone is fine. I have some weird question this time. I want to automate the creation of sub-tasks based on the description of the Story. 

Here is the scenario. I have created Story with the detailed description, I want to automate creating sub-tasks based on this story description. For e.g. I have entered a detailed description with line breaking or something like 

1. Some example text

2. Some example text 

3. Some example text

Now 3 sub-tasks needs to be created based on this description entered in the user story. 

The idea behind this is I don't need to create sub-tasks every time when story is created and I have to create sub-tasks for every story, that's how my project works. 

I am not very hopeful that this is possible but kindly let me know if there's any possibility. 

2 answers

0 votes
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 3, 2023

Hi @Hizkeel Khan  Here is the solution, I have used substringBetween(String open, String close) to get Story Description data and copy in into Sub-tasks. 

Second Sub-task.jpgFirst Sub-task.jpg

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 3, 2023

You have to split description based on your data, I have designed based on my description data :- https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/

 

Screenshot 2023-08-03 131035.jpg

Hizkeel Khan August 3, 2023

@Vikrant Yadav - Thank you so much for your detailed answer. This looks great. 

 

However, this still doesn't solve my problem. Using this I still have to create the automation rule every time against the Story. The description will be different for every story so it doesn't serve my purpose. 

I am trying to automate the process. For story I created, the sub-tasks should be created automatically with the description of the Story divided into sub-tasks automatically. 

I am attaching SS for reference. Can we create the sub-tasks based on divider (horizontal line). This way I won't have to specify the description in sub-tasks every time while creating automation rule. 

I hope I have made it clear to you. 


dummy text in description.png

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 3, 2023

Hi @Hizkeel Khan  Jira's smart values do not have a direct function to extract text before or after a horizontal line from the Description field. Use something string like ---- or ____

Hizkeel Khan August 3, 2023

@Vikrant Yadav - Can you please let me know how I'll be able to do it. That would be Great. Thanks. 

I mean how I will use these in Smart Values?

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 3, 2023

@Hizkeel Khan  You have to use these in Description field. It's better to add default Template in Description field, so that user fill that data in sequence manner and you also capture correct data. Default template means when use click on create button they get default question already filled in Description field. 

In Smart value you can use String function to get the data. 

Hizkeel Khan August 3, 2023

@Vikrant Yadav -  I don't think I have understood it completely but I'll try

0 votes
Hizkeel Khan July 31, 2023

@Vikrant Yadav - Can you please help me out here? 

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 2, 2023

@Hizkeel Khan  You want to capture all three example text and store in sub-task, or you want just to check if example text is available or not ? 

Hizkeel Khan August 2, 2023

What I want the sub-tasks should be created automatically from the main story and divided into like 2-3 subtasks.

The main story description should be divided into number of sub-tasks that are created. The idea is I don't need to write/copy description of each sub-tasks separately. 


Andrew Trainor
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!
April 25, 2024

Did you ever get a solution? I am working on a similar automation

Suggest an answer

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

Atlassian Community Events