Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

story and subtask

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

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

@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!!

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

@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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you