story and subtask

Ganesh
Contributor
January 10, 2022

Hi Community,

I need to make subtasks as by default when stories are created 

EX: Whenever I m creating a story i would like to create subtask A and Subtask B automatically created.

Story created (Subtask A and Subtask B also should create)

how to accomplish this? Thanks in advance!!

Best,

Ganesh

1 answer

1 accepted

5 votes
Answer accepted
Marco Brundel
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.
January 10, 2022

Hi @Ganesh ,

There are several options.

If you have access to the Scriptrunner app or the Jira Workflow Toolbox app, you can include a postfunction in your workflow

  • Create a sub-task [ScriptRunner]
  • Create issue by JWT

You can also create a rule with automation for jira.

Screenshot 2022-01-10 at 11.56.05.png 

Regards,
Marco

Ganesh
Contributor
January 10, 2022

@Marco Brundel  Much appreciated for the quick response!!

I've tried with "Create a sub-task [ScriptRunner]", which is working absolutely fine!!

here workflow is associated with 20 other projects, do i need make the diverge for my project or is there any script or code can i use to make this happen without diverging!!

Please assist!!! Thanks!!

Marco Brundel
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.
January 10, 2022

Hi @Ganesh ,

In the condition of the postfunction you can put 
issue.projectObject.key == 'XYZ'

 

Screenshot 2022-01-10 at 14.32.10.png


Regards, Marco

Ganesh
Contributor
January 10, 2022

@Marco Brundel   Thank you so much!! 

This script is working absolutely fine!!! 

Keep support us !! Thanks!!

 

Best,

Ganesh.

Like Marco Brundel likes this

Suggest an answer

Log in or Sign up to answer