When a user closes incident, auto fill resolution code and resolution notes

maymunTesm
Kilo Expert

When a user chooses to close their incident from the portal, is it possible to make the resolution code and resolution notes be auto-filled with specific details? At the moment, the incident is just being resolved without either notes or code, which is not ideal when reporting

1 ACCEPTED SOLUTION

maymunTesm
Kilo Expert

Ended up doing this:



(function executeRule(current, previous /*null when async*/) {


// Add your code here
gs.log("Test");
current.u_resolution_notes="No longer required - Incident set to Resolved by Customer";
current.update();


current.u_resolution_code = "Unresolved - Closed by Customer";
current.update();

})(current, previous);


View solution in original post

9 REPLIES 9

maymunTesm
Kilo Expert

Referring to a user with no roles


Jaspal Singh
Mega Patron
Mega Patron

Hi Maymun,



You can have an after business rule written when the state changes to Closed//resolved & set the resolution code & notes accordingly.


Hi Jaspal, how would I specify the resolved by condition in the business rule?


I think i'm trying to get something like this? but need to know what to put in the conditionfind_real_file.png