You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have a custom SLA(Due Date) field, which should get calculated based on Priority.
So I have
def int dt = 0
if (issue.getAsString("Priority").equals("Urgent"))
{dtprd = 4}
else if (issue.getAsString("Priority").equals("High"))
{dt = 24}
else if (issue.getAsString("Priority").equals("Medium"))
{dt = 96}
else if (issue.getAsString("Priority").equals("Low"))
{dtprd = 240}
else if (issue.getAsString("Priority").equals("Unknown"))
{dt = 240}
else {dt = 8760};
issue.get("created") + dt
it seems to work for high, medium, low and unknown. But for the urgent where i have 4 hours, it doesn't change the time. It just stays at the created date/time. How can I get the Urgent to have created time + 4 hours? Any help would be greatly appreciated. Thank you.