I have a requirement as to build an automation which can help the users to transition the issue when condition is TRUE as below.
Condition: When the first child issue is moved to In Progress the parent Epic will be moved to In Progress. This happens only once.
If a issue has been transitioned to "In Progress" status, we have to validate that parent of the trigger issue has all open issues. Trigger issue is the first child transitioned to "In Progress", then in such cases parent issue should be transitioned to "In Progress". This should work only for the first time and in other cases parent will have child issue in "In Progress" status which doesn't satisfy the condition and then automation should not take any action.
In the same way there is another condition for other automation as below.
Condition: When the last child issue is moved to a terminal state the parent Epic will be moved to the same terminal state. This happens each time “the last” child is moved.
If a child issue has been transitioned to any closed status, automation has to be triggered and it has to validate that parent of a trigger issue has multiple child issues in which trigger issue is the last issue transitioned to closed status. This defines that all the child issues have been closed but parent is open. So, automation has to help in a way that parent will be closed when last child issue is transitioned to closed status.
Thank you in advance.
--Srujan