Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Scriptrunner Fast Track Script Assistance

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!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events