I added a new text field in view screen, named "SLA Status".
It be populated base on "Time to resolution" this field.
I added a post-function in CST this issue type's workflow, When I click resolve transition, It not works, appear error.
Please check the code:
string timeToValue = timeToResolution;
// Get index of last '|'
int index = lastIndexOf(timeToValue, "|");
int length = length(timeToValue);
if(substring(timeToValue, index+1, length) < 0)
{ slaStatus = "Breached"; }
else
{ slaStatus = "Met"; }
I'm looking forward your support!!!
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.