Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,400
Community Members
 
Community Events
175
Community Groups

How to auto add Epics as children to an Initiative using SR's 'create subtask' post function

Edited

Hi community,

Looking to see if anyone has successfully been able to automate the adding of Epics to an Initiative level issue during workflow updates using ScriptRunner's 'create Subtask' post function. 

Within the post function, ScriptRunner does allow for me to pick Epic as the subtask issue type...but when I apply this to the workflow, it ends up erroring out.

Initiative has been added to the hierarchy using Portfolio and the Parent Link field has been added to the Epic screens, but for some reason it will not create the Epic on the workflow transition.

Has anyone been able to figure this one out?

1 answer

1 vote
Curt Holley Community Leader Feb 14, 2022

Hi @Lara Arthur 

I would recommend using the built in Automation for Jira instead of Scriptrunner for this.

But regardless of automation tool, Epic cannot be selected as a sub-task issue type, because it isn't one.

High level guess of what the automation might look like below. Where customfield_10009 = Parent link and SAFe Epic is the equivalent of Initiative

Disclaimer, I may not have that additional fields section setup quite right, but can't test it currently either...Sorry!!

Hopefully this can get you started/close?

Screenshot 2022-02-15 160109.png

I'll give it a try....I must say I've been staying away from it since I'm so used to using ScriptRunner for server. But being in the cloud now limits the use of it.

I do understand that an Epic is not a 'subtask' but there is a post function available in ScriptRunner that seems to allow you to set up that hierarchy.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events