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

Groovy Script to create child issues from a checklist

Edited
David Lepaux Lepaux
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Nov 13, 2023

Hi Community !

I'm developing a Groovy Script on a transition on a workflow. During the transition, I show a screen where the user can select some elements from a checklist (custom field). All of this to create child issues automatically.

Expected behaviour

I expect the script to create child issues and then in the parent to see them sorted in order of creation.

Actual behaviour

When I do the transition the script is ran successfully and issues created in the right order (I can see that with the KEY) but they are shown randomly, even not by name or something.

There is also something strange happening, when I test the script against an issue wihtin the editor it works fine, but in production like, it's chaotic. Like shown in the screenshot below:

Tickets enfants.png

You can find the script here: https://github.com/dlepaux/groovy/blob/main/script.groovy

I believe the script is well documented by comments but if you have any question let me know.

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.4.9
TAGS
AUG Leaders

Atlassian Community Events