Changing task priority based on SLA

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2012 10:12 AM
I would like to change the priority on a task based on the SLA. For example - Priority is 5 and due date is 10 days out. When I reach 5 days out (50%), change the priority to 3, 2 days out (80%)change to P2....
I was trying to use the Default SLA workflow and key the Priority change off of the %'s, but I can't make it work. I added a run script between the 50% timer and the notification and used "current.task.priority = 3;", but it didn't do anything. Am I looking at this wrong?
Thanks,
Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2012 10:24 AM
In this case, current would not be referring to the task that the SLA is running on. Current is referring to the SLA itself, and since you want to modify the priority of the task and not the SLA (cuz SLA's don't have a priority per se). You'll need to use a glide record in your script in the SLA workflow which goes out and grabs the task in question and then sets the new priority, then updates the record.