Hello,
I am trying to write a fast track based off of two conditions. There are two seperate fast track post functions in the transition. Based off of the selections the ticket is meant to take a different transition out of the status.
First fast track
def var1 = cfValues['Department (Single Choice)']?.value
def var2 = cfValues['Amount (Estimated)'] as Long //cast to long for numerical comparisons
def result = var1.equals("5/5") && var2 <= 999999.99
Transition: send to approved
Second fast track
def var1 = cfValues['Department (Single Choice)']?.value
def var2 = cfValues['Amount (Estimated)'] as Long //cast to long for numerical comparisons
def result = var1.equals("5/5") && var2 >= 1000000
Transition: To 3rd level approver
It seems to always send the tickets to approved status no matter what value the amount (estimated) field contains
amount (estimated) is a number field
Department (single Choice) is a single select field.
Thank you for any help!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.