Hi,
I have a status that has 2 transitions (Peer Review and independence Review. I created a condition based on Overall Impact field (single select). If Overall Impact is High, Independent Review should show and Peer Review should be hidden.
If Overall Impact is either Low or Moderate, Peer Review should show and Independence Review should be hidden.
Selecting Low or Moderate works (Independent Review is hidden) BUT if I select High, Peer Review still shows (transition should be hidden).
Here's my condition for Peer Review
import com.atlassian.jira.component.ComponentAccessor
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def cf1 = customFieldManager.getCustomFieldObject(30924)
if (issue.getCustomFieldValue(cf1)?.value == "Low" || issue.getCustomFieldValue(cf1)?.value == "Moderate") {
return true
}
Here's my condition for Idependent Review
import com.atlassian.jira.component.ComponentAccessor
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def cf = customFieldManager.getCustomFieldObject(30924)
if (issue.getCustomFieldValue(cf)?.value == "High") {
return true
}
PS:
I've notice the condition in Peer Review has not run