Hi,
In the "create" screen I have a Select List (single choice) field with optional values: X and Y
and another Text Field (single line).
I want to make the Text Field mandatory but only if the value in the Select List is X.
Is it a configured JIRA option? if yes- how can I do this?
if not- what is the simplest way to achieve this?
Hi,
Required ScriptRunner plugin, add this validation at required transition
Here Single Select custom field (singleSelect) with Options X and Y where if X is selected then Text Field (textField) required
(cfValues['singleSelect']?.value == 'X' && cfValues['textField'] != null) || (cfValues['singleSelect']?.value == "Y")
-
Tej
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.