Hi,
When we ask a question to the author in the comments of a task, we assign it to the author and change the status to "Hold". If the author writes a response, we need the status of the task to automatically change to "In Progress" and the task to be assigned to the previous assignee.
How can I configure automation using a sil-script?
We already have a script configured. But how do I configure the script to run when a comment is posted to a task?
JComment cmt = getLastComment(key);
string rep = reporter;
string authorComm=cmt["author"];
if(contains(authorComm,rep)){
string [] h = fieldHistory(key, "assignee");
string a;
if(isNotNull(h[1])) {
a = h[1];
}
else {
a = h[3];
}
assignee = a;
autotransition(521,key);
}