Hi,
I'm trying to create a "Clones an issue, and links" listener with condition based on 'Customer Request Type', but it doesn't work.
The condition script is:
import com.atlassian.jira.component.ComponentAccessor
def cf = ComponentAccessor.customFieldManager.getCustomFieldObjectByName("Customer Request Type")
def requestType = issue.getCustomFieldValue(cf)
if(requestType.toString() == "sr/ad0f59b4-6224-4060-8d66-4e714a8e4a20")
{return true}
Can anyone helps please.
Many thanks,
Guy