Workflow to change state if comment contains resolved
I am having problems to create a custom workflow to change the state based on comments. My current issue with the workflow is that the keyword has to be the first word. I would like it to search the entire comment for this keyword. I have tried comments.added.contains("Resolved") but this doesn't work.
Here is my current workflow:
when comments.added.isNotEmpty {
if (comments.last.author.isInGroup("helpdesk") && comments.added.first.text == "Resolved") {
State = {Fixed};
} else if (comments.last.author.isInGroup("helpdesk") {
State = {In Progress};
} else {
State = {Submitted};
}
}
Here is my current workflow:
when comments.added.isNotEmpty {
if (comments.last.author.isInGroup("helpdesk") && comments.added.first.text == "Resolved") {
State = {Fixed};
} else if (comments.last.author.isInGroup("helpdesk") {
State = {In Progress};
} else {
State = {Submitted};
}
}
Please sign in to leave a comment.
Note, the method comments.added.contains(myComment) expects a comment reference as parameter but not a string.
Whats if I want is to be Resolved or resolved? Can i make it not case sensitive?