Forums

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

Auto-creating multiple stories under an epic based on numerical custom field

hkenny
Contributor
September 26, 2018

Hi,

I've seen a few posts hinting at this, but none seem to actually resolve it. Is it possible to auto-create multiple stories under an epic based on a custom numerical field? Speaking as a non-developer.

Create Epic > set 'Stories required' to '3' = 3 Stories would then be automatically created under the same project with the same Summary. 

Any guidance appreciated.

1 answer

1 vote
Daniel Wong
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 29, 2018

Hi Howard,

This can't be done without the use of an addon. There are a few addons out there that can be used to achieve this (Automation for Jira / BobSwift / Adaptavist Scriptrunner). The one I'll talk about is Scriptrunner as I'm most familiar with it.

If you plan to have stories auto-created on a workflow transition, then you can look at using Scriptrunner's 'Clone Issue and Link' Post function here -https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_clones_an_issue_and_links

This will give you a starter on how Scriptrunner creates issues on a post function and you can use it to experiment with conditions on when to trigger the post function (ie. only trigger if custom field 'Stories' is set to '1'). From there then you can start looking at writing your own script to do multiple issue creation based on your requirements.

Have a look at this post for more information to creating multiple issues in a script - https://community.atlassian.com/t5/Jira-questions/Create-multiple-issues-based-on-the-values-on-a-custom-field/qaq-p/739645

It is a little technical but if you go through Scriptrunner's documentation and guides then a lot of it will make sense.

hkenny
Contributor
October 1, 2018

Thanks Daniel

Suggest an answer

Log in or Sign up to answer