I am trying to create a simple script validation on the creation of a ticket of type bug where it should throw an error if the epic field (custom field) is empty. Below is what I have written. Once I activate this it always shows (even if the epic link (cfValues[11240]) is filled up). What am I doing wrong?
issue.issueType.name != 'Bug' || cfValues[11240]