Script Post-Function Not Finishing Before Next Post-Function Starts

So I have a jython script post function that will create subtasks if they are needed based on some code logic. After that, I have a fast-track transition script postfunction with a condition to see if there are no subtasks. If there are no subtasks it will move it to a particular transition. This is working, however, it is moving the issue before subtasks are created, so every single issue is being move. It seems like it is following the order, but it only executes the script and immediately moves on, rather than waiting until the script is finished. How can I solve this?


Post-Function order:

  1. Set issue status to the linked status of the destination workflow step.
  2. Add a comment to an issue if one is entered during a transition.
  3. Update change history for an issue and store the issue in the database.
  4. Re-index an issue to keep indexes in sync with the database.
  5. Fire a Generic Event event that can be processed by the listeners.
  6. Jython post-function script: file is referenced.
  7. The Assignee of the issue will be cleared.
  8. ScriptRunner workflow function - Fast-track transition an issue (condition apply).
    Action: Approved (721) will be applied
    Note that this should go after the Fire Event function.

Instead of 6 completing and then moving on to 7 & 8, it moves on as soon as 6 starts, so subtasks are not created before 8 goes.

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

176 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot