I am using the below code to update the incident work notes when Problem is associated with the incident but it is not giving the deeplink/url of the Problem id to redirect to problem. It is just displaying the problem id number.
Code Snippet:
(function executeRule(current, previous /null when async/) {
// Add your code here var problem = current.getDisplayValue('problem_id'); current.work_notes= "Problem " + problem + " has been associated with the Incident";
})(current, previous);
Output: Problem PRB00123 has been associated with the Incident.