Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to add a link to a Change Request in an Incident ticket

asaasaasa
Tera Contributor

Is there a way to add a link to the related Change Request ticket when viewing an Incident ticket in the Employee Center?

1 REPLY 1

AlfrinAJ
Tera Expert

Hello @asaasaasa, You can write a BR (Change Request field changes) to post the link in the Comments (Customer Visible).

 

Condition for BR

CR Link BR Condition.png

Code:

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

	var url = '[code]<a href="' + gs.getProperty('glide.servlet.uri') + '/'+'change_request' + '.do?sys_id=' + current.rfc.toString() + '" target="_blank">' + 'Related Change Request - '+current.rfc.getDisplayValue() + '</a>[/code]';
	current.comments = url;
	current.update();

})(current, previous);

Sample Output:

CR Link Sample Output.png

CR Link ESC Sample Output.png