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

1 vote
Accepted answer

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. ;)

Is there an option for OnDemand?

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

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 Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

61 views 4 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