Hi Team,
I am trying to hide the workflow transition based on the custom field value.
I used "Simple scripted condition" with script runner for a transition, but it was showing when the "Product Type" is "ECS" or "Setup" values and hiding for other values, but I want reverse; it should be hidden when these values in "Product Type" field.
(issue.issueType.name == 'Sub-task') && ((cfValues['Product Type']*.value.contains("ECS")) || (cfValues['Product Type']*.value.contains("Setup")))I tried with "Not," and then the transition shows for all values.
(issue.issueType.name == 'Sub-task') && ((!cfValues['Product Type']*.value.contains("ECS")) || (!cfValues['Product Type']*.value.contains("Setup")))
Is there any correct in my script? Can anyone please suggest one?