on a workflow from status A to status B
I want to have RCA field as mandatory if labels contain "regression" and "stg"
on that workflow, I tried using power script as condition as used below jira expression
then on the validator tab added validator that RCA field != empty (using 'Field Required Validator')
the problem:
1. RCA was always mandatory and didn't check the condition of certain labels
+
2. status B didn't appear on the statuses option list
what did i do wrong?
issue.labels.contains(<span>"regression"</span>) && issue.labels.contains(<span>"staging"</span>)