aggregator-cli icon indicating copy to clipboard operation
aggregator-cli copied to clipboard

TransitionToState is missing in V3

Open dcasbonne opened this issue 3 years ago • 0 comments

Feature Request

I'm writing a simple rule that update Parent status. Let's say I'm on a task update and it has been set to Active. At this moment, its parent (a User Story / Requirement) should be set to Active. However we have some transition rules : Proposed / Approved / Active / Resolved and we have to pass by each state. If my parent is in Approved state it's easy to set it to Active. But if it's in Proposed state I couldn't set to Active because this state is not in the list.

Describe the solution you would like In V2 you had a TransitionToState(...) method that allow us to change state without considering a "path" to follow and by adding a comment too. I'm missing this method !

Describe alternatives you have considered I've found in issue #208 that I can call SaveChanges on the store but it's not easy to use (need several parameters that I can't access in my rule) EDIT : this solution doesn't work, it fails with this message : Test Operation for path /rev failed, value 14 was not equal to test value 13."}​}

Additional context Add any other context or screenshots about the feature request here.

dcasbonne avatar Feb 17 '22 19:02 dcasbonne