You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm using Script Runner version 6.2.1-p5 with Jira server version 8.6.1
I have a transition that contain 2 post functions (custom script).
First script => create a subtask
Second script => get the list of subtask (that was created from previous script).
In my second script, I use below code to get subtask:
Collection subTasks = issue.getSubTaskObjects();
But it doesn't work. My subTasks variable is still empty (although the subtask has already been created from my first script)
Anyone could give me an advise? I'd be much appreciated.
Thank you for your reply.
I've merged 2 script into 1 but it still doesn't work.
However, I notice that if I don't do fast-track (script runner) for this transition. Everything will work perfectly. Once I do fast track, I will have this problem immediately.
I believer something is related to the fast track.
So seems like you answer to your-self :)
Seems like the fast-track not performing the post-function script (and maybe all other post-functions you have in this step)
Hi @Joe Bkk
Why are you creating this as 2 different post functions?
It might be that the sub-task not showing yet because the process of the workflow transition not finished.
I would suggest to it all in one post-function, no reason to make 2, specially if 1 depend the other