Automatically created sub-tasks on story create

Curious how this might be done (in either OD or download)?

Real world example:

PM creates a story and more often than not, needs to create at least a few sub-tasks for it each and every time (like manual test, documentation, code review) etc.

How could I automate it so some specific sub-tasks get created for any new story in a particular project?

Moreso... how could I also auto-assign those as well?

4 answers

1 accepted

This widget could not be displayed.

If its for Jira 5 :

- Install Groovy : https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner

- Use a Post Function in your workflow at the step Create

- Use the Build in script for auto create subtask

If you want to auto assign I use this in the additional code :

import com.atlassian.crowd.embedded.api.User
import com.atlassian.jira.component.ComponentAccessor
userManager = ComponentAccessor.getUserManager()
user = userManager.getUserObject("martin.poirier@ubisoft.com")
issue.setAssignee(user)

Thanks, will try it out once we get OffDemand. ;)

This widget could not be displayed.

Is there an option for OnDemand?

This widget could not be displayed.

Create on Transition Plugin for JIRA (for download). How to create subtasks on initial issue create shows how to create issues or subtasks. You can condition on what project to do this for and set various values etc...

This widget could not be displayed.

Bob - are you saying you've created an OnDemand version of "Create on Transition"? Can you point me to that if so?

No. It was an answer to the original question. Answers in this list are not ordered by date.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

35 views 0 0
View post

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you