Forums

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

Automatically created sub-tasks on story create

Doug Varn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2013

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
Answer accepted
Ubisoft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2013

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)

Doug Varn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2013

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

3 votes
Nicole Lesko May 29, 2013

Is there an option for OnDemand?

0 votes
Tim Arnold September 13, 2013

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

Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2013

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

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 22, 2013

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events