Can I Create an Issue as part of a workflow of another issue?

Naama Lev
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.
December 14, 2014

Hello Experts, 

Can you please let me know if it is possible 

That a status in one issue type workflow will trigger creation of another issue type?

Thanks

Naama

2 answers

1 accepted

0 votes
Answer accepted
Steve Thornhill
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.
December 14, 2014

Yes, you can add a post function to do that.

Take a look at Script Runner if you do not already have that installed as a plugin. There are examples in there that will allow you to create sub-tasks, etc

Naama Lev
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.
January 20, 2015

Hi Steve, Thanks for that! Do you have example how to create a new issue that takes it's data from the another issue? Thanks Naama

Steve Thornhill
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.
January 20, 2015

If you are going down the script runner route, when you add the post function to create a sub task you will have a variety of options to add detail from the parent. The Summary is one of the main option, but under additional actions you can set custom fields from those of the parent. So basically, edit your workflow, in the transition where you need a sub task, add a post function and select script postfunction, then select the create subtask option.

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
December 15, 2014

Create Issue post function from Create on Transition for JIRA. Use How to condition the creation of issues to condition the create on the status of the issue being transitioned.

Suggest an answer

Log in or Sign up to answer