- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2014 02:27 AM
Is it possible to allow Emails displayed on the Incident activity UI Formatter to be automatically expanded when an Incident is opened? As we give most of our caller updated via the email button, it would be useful for our analysts to be able to see all of the updates at a glance, rather than having to click the + sign on each item. If this could be switched on / off per user then even better! Thanks.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2014 04:56 AM
Hi Adam Domanski,
With a little of jQuery Magic you can do it:
($$("img[onclick*='ActivityFilter.activityEmailToggle']")).each(function(item){item.click()});
Here the documentation:
Attribute Contains Selector [name*="value"] | jQuery API Documentation
[]'s
Andre Moreira

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2016 03:03 AM
Hi Ewan, Morning!
Firstly, Happy New Year! 🙂
Next the ServiceNow Fuji Release has some new HTML structure, because of this that script not works... So you need to use the follow script:
($$("a[onclick*='ActivityFilter.displayActivity']")).each(function(item){item.click();});
Already tested on glide-fuji-12-23-2014__patch10-10-21-2015.
[]'s
Andre Moreira

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2016 03:27 PM
Thanks Andre!
Your code above closes all activity log items when an incident is loaded in FUJI 9. I was able to get the functionality I needed with a variation of your two examples:
($$("a[onclick*='ActivityFilter.activityEmailToggle']")).each(function(item){item.click();});
Now if only this could be a user preference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2016 08:40 AM
Hi,
Adam Domanski,
Is there a different code for Helsinki? I have tried looking at the DOM and adding to the script that worked for Fugi and Geneva but nothing is working. Here are the codes that I have tried based on the DOM.
Tried all these scripts:
/*function onLoad() {
($$("a[onclick*='ActivityFilter.activityEmailToggle']")).each(function(item){item.click();});
}*/
/*function onLoad() {
($$("a[onclick*='ActivityFilter.activityEmailToggle.toggleEmailframe(entry.email, $event)']")).each(function(item){item.click();});
}*/
/*function onLoad() {
($$("a[onclick*='ActivityFilter.toggleEmailframe(entry.email, $event)']")).each(function(item){item.click();});
}*/
/*function onLoad() {
($$("a[onclick*='ActivityFilter.toggleEmailframe']")).each(function(item){item.click();});
}*/
/*function onLoad() {
($$("img[onclick*='ActivityFilter.activityEmailToggle']")).each(function(item){item.click();});
}*/
/*function onLoad() {
($$("img[onclick*='ActivityFilter.activityEmailToggle.toggleEmailframe(entry.email, $event)']")).each(function(item){item.click();});
}*/
/*function onLoad() {
($$("img[onclick*='ActivityFilter.toggleEmailframe(entry.email, $event)']")).each(function(item){item.click();});
}*/
function onLoad() {
($$("img[onclick*='ActivityFilter.toggleEmailframe']")).each(function(item){item.click();});
}
All failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2023 02:29 AM
Currently in Tokyo version and requirement is to keep expanded all post in agent workspace all the time unable to write a jquery code for the same in client script . kindly assist .
Thanks
Manasa