Forums

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

Can a subtask create another subtask when set Done

Magalhaes Anthony
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!
July 4, 2019

Hello,

In my project, we have the following configuration :

When a issue type WRICEF is created, it create 3 subtask :

  1. Dev
  2. SFT
  3. SFD

This work without any trouble, but we want a new feature.

When the Dev subtask is set to done, we would like that a new subtask (with WRICEF for parent issue) named Test to be created. There are two teams, one for the Dev (and some technical test) and one for functionnal test, and they don't want to share the same issue.

Is it possible to trigger the creation of the new subtask when one subtask is set to Done ?

Thank you.

Regards

Magalhaes Anthony

2 answers

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2019

Hello,

If you do not have Jira Service Desk, then you would need an app like Power Scripts, ScriptRunner, Automation For Jira.

If you want to use the Power Scripts app, then you could create a post function for the required transition with a code like this:

if (isNotNull(parent) and  status == "Done") {

string issue_priority;

string issue_description;string[] issue_components;

string issue_security_level;

string[] custom_fields_mapping;

issue_priority = "Critical";

issue_description = "Description of the issue";

issue_components = components;

issue_security_level = "Administrator";

custom_fields_mapping = "customfield_12345|fmanaila|customfield_12346|jira-users";

string k = createIssue(

            project,

            parent,

            "Sub-task",

            "Summary of the sub task" ,

            issue_priority,

            issue_description,

            issue_components,

            currentDate() + "30d",

            issue_security_level,

            custom_fields_mapping           );



}
0 votes
Manuel Bastardo Castellano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2019

Hi Magalhaes you need to create an automation to set up the two subtask for each team

try with https://marketplace.atlassian.com/apps/1215460/automation-for-jira?hosting=cloud&tab=overview 

Hope it will be helpfull 

Regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events