I need to check issue's project category in workflow validator and if that matches then two custom fields need required for that transition. If that does not matches then its not required. Require a Jira Expression for this scenario.
Example scenario: If issue project category is X then custom field A and custom field B should be required for that particular transition.
If issue project category is Y then custom field A and custom field B should be optional for that particular transition.
By using the below Jira expressions I have achieved it.
project.projectCategory.name != "Category X" || (!!issue.customfield_A &&!!issue.customfield_B)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.