I want to check if the user has logged work against a sub-task when the task is closed. I added a workflow validator, to check time spent. The problem is it always gives a required field error even when I log time against the task. Any thoughts on how to make this work without using any plugins?
I was able to fix by adding a groovy script to the validator and check for timespent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to use the Conditional Field Required Validator (just leave the condition empty). It worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've set up the same transition as @Nagendra Dattatreya ; However I'm always getting the failure even if time was logged prior to moving the issue to the next status. Does anyone have a solution for that which doesn't require writing groovy script to work around (what appears to be a bug)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Validators are checked on the transition screen.
What you have to add is a condition in the workflow transition. Make it that time spent is not empty as the condition. And the transition will be shown only if an effort is logged. Otherwise it will be hidden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Fazila! This works, the only thing is there is no message to the user that time spent is required. With validators, it gives a message to the user that the field is required. Is there something similar?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.