Hello,
I'd like to create a validator for a certain field, if it changes to a specific value, a linked issue from type "Is tested by" must be set.
I know that validators are only for transitions, it can also be a kind of automation, I'm open to ideas.
I have ScriptRunner & JMWE.
Thanks
I assume you want this "validation" to take place even if the user changes the value of the field on the Issue View screen, instead of just on a Create or transition screen?
If so, as you mentioned, Jira doesn't support validation on the issue view screen. The only workaround would be to create a JMWE Event-based action to react to changes to the field, and if the field has the specific value, and an issue is not linked through the "is tested by" link direction, then display a message using the "Display message to user" post-function and, possibly, revert the value of the field to the previous value.
TIL, I didn't even know Event-based action was an option, but after some digging around I found a way to get it just the way I wanted to.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.