Workflow: check period field larger or smaller than?


Quick question if anyone could help me :)

I would like to make a workflow that checks on a state update that the estimate field is filled in and is smaller than 4h (except when a member from the "manager" group does it.

I have the first part working fine, the second part that needs to check the time OR user being a manager I have no idea about.

this is what I have.

 when State.becomes({Todo})
   assert Estimation != null: "An estimate is required";

I haven't found documentation revolving the periods in the work flow.

Thank you!


Please sign in to leave a comment.