Forums

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

When a story is created we will require below 4 subtasks to be created along with it

Manoj
Contributor
March 1, 2023

Hi All,

Greetings!

Need your support here, When a story is created we will require below 4 subtasks to be created along with it, rest all configuration would remain same (field & Screen configuration etc)

  1.  Development
  2. Unit Test
  3. Code Review
  4. Pre-Prod Deployment

 

1 answer

1 accepted

0 votes
Answer accepted
Brant Schroeder
Community Champion
March 1, 2023

@Manoj I am assuming that you are asking how to do this when the issue is created.  You can easily set this up using automation.  

Manoj
Contributor
March 1, 2023

@Brant Schroeder Hello, Yes right but that automation is not enabled, i do have scriptRunner, is that doable via scriptRunner?

Brant Schroeder
Community Champion
March 1, 2023

@Manoj Yes.  On the issue create transition in the workflow you will just need to add a post function and use the Create a sub-task [ScriptRunner] post function to add the sub-tasks.  

Manoj
Contributor
March 2, 2023

@Brant Schroeder Thanks, i am at the same page, but writing script is challenge, as it's completely new to me, any guidance further from your end would help.

Brant Schroeder
Community Champion
March 2, 2023

@Manoj If you use the post function listed above the issue creation is very simple as majority of the settings would be done through the GUI.   If you would like to add additional information to the sub-task that can be done through additional issue actions and you can find snippets to help you.  You can also look at the documentation here: https://docs.adaptavist.com/sr4js/7.10.0/features/workflows/post-functions/built-in-post-functions/create-a-sub-task?utm_source=product-help 

Screenshot 2023-03-02 083803.png

Manoj
Contributor
March 2, 2023

@Brant Schroeder Hello, GM, thanks alot for sharing your inputs on my request, i have tried above steps to execute, however this only create 1 sub-task at a time, but i want to have all 4 sub-task at one go. any suggestion pls.

Manoj
Contributor
March 2, 2023

@Brant Schroeder I realized the error happened during performing this execution, its corrected and now it is working as expected.

Thanks alot Brant. 

Like Brant Schroeder likes this
Manoj
Contributor
March 3, 2023

@Brant Schroeder Hello, now i have few fields to make mandatory on these sub-task created (which is essentials to fill), is this done via scriptrunner and how?

  1. Labels
  2. Description
  3. Comments
Manoj
Contributor
March 3, 2023

@Brant Schroeder it's done, i have used behaviors functions to do this.

Suggest an answer

Log in or Sign up to answer