This is what I have written in validation script of Behaviors Plugin of jira
FormField srcd = getFieldByName("SIS Tech Review Completion Date") FormField srsd = getFieldByName("SIS Tech Review Start Date") String compdate = srcd.getValue() String startDate = srsd.getValue() if (compdate < startDate){ srcd.setError("error") }
Once I put "compdate < startDate" in JIRA field of the ticket , suddenly JIRA field becomes non-editable. I am not sure how can I inform User about this validation with message :
"SIS Tech Review Completion Date should be greater than SIS Tech Review Start Date"
It looks ok to me, but you need to clear the error once that condition is not true. It doesn't happen by magic.
So you need an else block with srcd.clearError() or whatever, can't remember syntax right now.
If that doesn't help can you add some screenshots.
Is there any reason you aren't using a workflow validator to accomplish this?
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.