boolean expression not working in Post Function

Issue #869 resolved
AndreH created an issue

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)

  1. Fidel Castro Armario repo owner

    Hi @zarco44,

    Are you executing the post-function in parent issue's workflow or in sub-task's workflow?

  2. Fidel Castro Armario repo owner

    Hi @zarco44,

    I find very strange the issue selection you are using in the post-function. Just 2 questions:

    1. Are you trying to select "S4" in order to transition it to from "Open" to "In Progress"?

    2. 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?

  3. AndreH reporter
    1. 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.

    2. A person would be working S4 once In Progress and then close it manually, no automation.

  4. Fidel Castro Armario repo owner

    Hi @zarco44,

    Try the following boolean expression at parameter Conditional execution:

    count(siblingSubtasks()) - 1 = count(filterByStatus(siblingSubtasks(), "RESOLVED"))
    
  5. Log in to comment