How to add a link to a Change Request in an Incident ticket
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Is there a way to add a link to the related Change Request ticket when viewing an Incident ticket in the Employee Center?
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @asaasaasa, You can write a BR (Change Request field changes) to post the link in the Comments (Customer Visible).
Condition for BR
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:
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
you can add the link in work notes once CHG is linked with INC
what did you start with and where are you stuck?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Regards,
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
