Jira Expression to validate Project Category

Kishore Kumar Gangavath May 27, 2022

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. 

1 answer

1 accepted

0 votes
Answer accepted
Kishore Kumar Gangavath May 31, 2022

By using the below Jira expressions I have achieved it.

 

project.projectCategory.name != "Category X" || (!!issue.customfield_A &&!!issue.customfield_B)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events