Need to send notification with the hyperlink with the list of incidents assigned to that user

ab
Tera Contributor

When notification is triggered to assigned to, the hyperlink should also be added in the notification which redirects to the list of incidents assigned to that user.

TIA.

2 ACCEPTED SOLUTIONS

Aman Kumar S
Kilo Patron

Write up an email script and add these lines:

var url = gs.getProperty('glide.servlet.uri') + '/nav_to.do?uri=incident_list.do?sysparm_query=assigned_to=' + current.getValue("assigned_to");

template.print('<a href=' + url + '>' + 'Incidents assigned to me' + '</a>');

and embed it in notification body.

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

View solution in original post

Chris D
Kilo Sage
Kilo Sage

A mail script is overkill here, no?

Just add a simple hyperlink to the notification Body to the dynamic url, such as:
[your_instance]/now/nav/ui/classic/params/target/incident_list.do?sysparm_query=active=true^assigned_to=javascript&colon;getMyAssignments()

(note a) that's a Next Experience URL just fyi and b) getMyAssignments is ootb and includes delegated work as well)

 

You could also use assigned_toDYNAMIC90d1921e5f510100a9ad2572f2b477fe which is the filter you get when you do Assigned To - Is Dynamic - Me

View solution in original post

2 REPLIES 2

Aman Kumar S
Kilo Patron

Write up an email script and add these lines:

var url = gs.getProperty('glide.servlet.uri') + '/nav_to.do?uri=incident_list.do?sysparm_query=assigned_to=' + current.getValue("assigned_to");

template.print('<a href=' + url + '>' + 'Incidents assigned to me' + '</a>');

and embed it in notification body.

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

Chris D
Kilo Sage
Kilo Sage

A mail script is overkill here, no?

Just add a simple hyperlink to the notification Body to the dynamic url, such as:
[your_instance]/now/nav/ui/classic/params/target/incident_list.do?sysparm_query=active=true^assigned_to=javascript&colon;getMyAssignments()

(note a) that's a Next Experience URL just fyi and b) getMyAssignments is ootb and includes delegated work as well)

 

You could also use assigned_toDYNAMIC90d1921e5f510100a9ad2572f2b477fe which is the filter you get when you do Assigned To - Is Dynamic - Me