Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why I can't set value for "SLA Status" this filed?

Cecilia Chu July 4, 2019

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:error.PNG post function.PNG Run.PNG workflow.PNG MicrosoftTeams-image.png

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!!!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events