Can I get a sample of Scriptrunner script to make a JSM Cloud custom field required depending on the value of another field?
Hi @Kiranmayi Yalamanchi (eCloud Labs Inc) ,
If you're looking for a solution to work for Customers on the JSM portal, you can read this page.
If you're talking about making it mandatory for Agents, you can probably use the ScriptRunner Behaviours for that. See this page for example scripts.
If you want to make the field mandatory during a certain transition, you can use the suggestion provided by @Pavol Gočal .
Have a nice day. Rik
Thank you, @Rik de Valk . for providing the useful links. I used the Agent version and is working perfectly!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Kiranmayi Yalamanchi (eCloud Labs Inc)
try using "Validators" in transition options:
Click "Add validator" and select "Field Required Validator (JMWE app)" that allows you to specify conditions:
In this validation, you can specify required field and "conditional validation" (if true, field is required, if false, field is not required):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Pavol Gočal ,thanks so much for providing the simplest solution. However, we don't have that plugin and I am recommending it to our team immediately.
Thanks again!
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.