I need to add a stateless rule to our workflow which pertains to Work types. It is not clear to me how to accomplish this. At our company, we use time estimation and tracking. Developers use "Development" work type, QA uses "Testing" work type, etc.... We want to require users to enter time before transitioning from one step to the next (e.g. from development to testing to documentation), but it is not clear to how check if total time spent associated with a particular work type is greater than zero. Any ideas?
The rules I need:
When transitioning to coded: ensure development time spent > 0
When transitioning to verified: ensure testing time spent > 0
When transitioning to documented: ensure documentation time spent > 0
I do not see from the documentation how to query work items at all.