Hello,
I have issues with this possible status: DRAFT, CANCELLED, PENDING APPROVAL, APPROVED, DONE AND OBSOLETE and the workflow in the attached image. I would like to add the possibility to transition from PENDING APPROVAL to CANCELLED, but only if the issue hasn't been never in APPROVED. I check some possibilities with scriprunner but I only can add the option of allowing the transition if the issue "has been" in a status and no if it "hasn't been" that is what I need. How could I do this?

Thanks in advance!