Create an issue in Jira with predefined sub-tasks

You can use groovy and issue workflow transitions together to create an Issue in Jira with subtasks already created like the issue below.

Issue with subtask
Before starting install the free add-on Script Runner – https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner.

After the installation follow those steps:
1. Create a custom workflow and edit it.
Screen Shot 2014-01-08 at 15.24.17

2. Click on the arrow Create and select Post Functions.Screen Shot 2014-01-08 at 15.25.00

3. Select Script Post-Function.
Screen Shot 2014-01-08 at 15.25.52

4. In the script post function dialog select Create a sub-task.
Screen Shot 2014-01-08 at 15.26.06

5. Fill the sub-task information and press Add.Screen Shot 2014-01-08 at 15.26.28

6. Verify that as first step of post functions you have “Creates the issue originally” otherwise the sub-task cannot be created!
Screen Shot 2014-01-08 at 15.27.30

8. Publish the new workflow.
Screen Shot 2014-01-08 at 15.27.37

9. Now you can create a new issue and you the script will create for you the configured sub-tasks!Screen Shot 2014-01-08 at 15.28.09

Issue with subtask

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s