/
How to create subtasks on initial issue create

How to create subtasks on initial issue create

Description

The create subtask transition post function can also be used when issues are first created. 

Steps

  1. Edit your workflow - create a draft if necessary
  2. Go to the Open step
  3. Click on the Create Issue (1) incoming transition
  4. Go to Post Functions
  5. Add  Create sub-task on transition post function
  6. To prevent looping, make sure you set the condition to ignore create if issue is a subtask: 
  7. Set other parameters as you need
  8. Move the post function below the Creates the issue originally post function - This is important!

Looping hazard

Be careful! Your configuration must have looping prevention included. Follow the instructions carefully and make sure you test carefully on a test instance or at least a test project.

 

 

 

What about creating issues?

That can be done using the same techniques, but you must be more careful to set the appropriate conditioning parameters to prevent looping. Use a test instance and double check your logic as the result of an error is bad (sad). Preventing looping is more difficult with issues compared to subtasks. You will need some specific conditions according to your environment. For instance, a value for a custom field that will indicate to create or not to create an issue. Or perhaps a JQL query that will indicate to not create.

 

Related content

How to create subtasks on initial issue create
How to create subtasks on initial issue create
More like this
Create subtask for specific issue types
Create subtask for specific issue types
More like this
Create multiple subtasks for specific issue type - Cloud
Create multiple subtasks for specific issue type - Cloud
More like this
How to condition issue creation
How to condition issue creation
More like this
How to block creation of sub-tasks for an issue with child sub-tasks
How to block creation of sub-tasks for an issue with child sub-tasks
More like this
How to create sub-task when the parent issue is not having any
How to create sub-task when the parent issue is not having any
More like this