boolean expression not working in Post Function
I have a Post function using -
count(siblingSubtasks()) = count(filterByStatus(siblingSubtasks(), "RESOLVED"))
This checks all sibling sub-tasks of 1 parent issue and if they are resolved it will set the last Sub-task to In Progress.
When I use count(siblingSubtasks()) = count(filterByStatus(siblingSubtasks(), "RESOLVED")), it does not work.
When I remove this boolean expression, it works.
Comments (8)
-
reporter -
repo owner Hi @zarco44,
Are you executing the post-function in parent issue's workflow or in sub-task's workflow?
-
reporter In the subtask workflow
-
repo owner Hi @zarco44,
I find very strange the issue selection you are using in the post-function. Just 2 questions:
-
Are you trying to select "S4" in order to transition it to from "Open" to "In Progress"?
-
Is "S4" the issue you are manually transition to "Resolved" status, and which is executing "Write field on issues returned by JQL Query or Issue List" post-function?
-
-
reporter -
S4 is the last sub-task that needs to be automatically moved from Open to In Progress when all other sub-tasks have been resolved. No one should move the status manually, it should be automated that once the rest of the sibling sub-tasks are closed, it should move status.
-
A person would be working S4 once In Progress and then close it manually, no automation.
-
-
repo owner Hi @zarco44,
Try the following boolean expression at parameter Conditional execution:
count(siblingSubtasks()) - 1 = count(filterByStatus(siblingSubtasks(), "RESOLVED"))
-
reporter Thank you looks like that did the trick
-
repo owner - changed status to resolved
- Log in to comment
Here's the sample of subtasks and Post function