The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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 Champions.
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 Champions.
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