Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi, we use Jira Cloud and I've setup the workflow to execute SIL scripts as a Post function, making them the very last step after the "Fire a Generic Event event that can be processed by the listeners."
The SIL scripts execute autotransition statements (they change either the parent or subtask status value so these don't get out-of-whack).
The script works okay the first time I change a status, but when I change status again, the status being picked up for subtasks isn't correct - there seems to be a delay or an indexing issue (for example the subtasks appear in the 'IN PROGRESS' column, but when the script runs, the description field says the subtasks are 'OPEN' (I update the description field to help me debug), even though the previous script updated them to 'IN PROGRESS'.
string[] siblings = subtasks(key);
for(string sibling in siblings) {
description += sibling + ": " + %sibling%.status + "\n";
if (%sibling%.status == "In Progress")
success = autotransition(141, sibling);
}
In desperation I've tried "admReindexIssue(sibling);" and "admReindexIssue(key);" but I'm getting an error saying that statement is undefined, assume because it's for Jira Server only.
Any help would be greatly appreciated.