Need script to make Text field mandatory while creation issue based on two custom field value

Hi Team,

We have three custom fields 1. Customer name (text field), 2. products (Single select) and reported by (single select).

When products = test and reported by = users the customer name field need to be mandatory while creation of issue.

Could you please help with script to achieve this requirement.

Hi Shiva2430,
you can use “Simple Scripted Validators” see documentation here https://docs.adaptavist.com/sr4js/7.0.0/features/workflows/validators/simple-scripted-validators
and put it on Create/Submit transition.