Missed Team ’24? Catch up on announcements here.

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

Automate a task creation

Artur Sykut October 21, 2021

Hello,

 

I'm wondering if it's possible to automate a creation of task basing on another task.

Example:

Task #1 has been created:
Summary: Task #1
Description:
- jct - 123 - an issue description

- jct - 456 - an issue2 description

 

And I want to create a tasks basing on previous one:

Task #2
Summary: jct - 123
Description: an issue description

Task #3
Summary: jct - 456
Description: an issue2 description

Is this even possible somehow?

1 answer

1 accepted

0 votes
Answer accepted
daniel_szewczyk October 21, 2021

You can achieve that using Jira Automation. Here's an example for sub-tasks but same/ similar things are possible for regular tasks as well:
https://www.atlassian.com/agile/tutorials/how-to-auto-create-subtasks-with-jira-software-automation

In order to extract new tickets titles from the description you can use regular expressions in Smart Values as described here (using match() function):
https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/

In the example provided the following regex should extract the ticket titles:
(jct - [0-9]{3})
And the one below to extract description (if it's single line):
jct - [0-9]{3} - (.*)
(Use https://regex101.com/ for testing)

Of course you would need to adjust those regex'es to your real life scenario but I included it just to give you an idea of what you can achieve.

Hope it helps!
Regards,
Daniel

Suggest an answer

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

Atlassian Community Events