Support tip: Highlight added and removed tags in Ticket Events view
If you rely heavily on tags in your workflow like us at Cloudinary, you may find it difficult to investigate which tags were added and removed on each step in the ticket's life.
To overcome this, we created a script that will highlight those added and removed tags.
A Zendesk app can't access the DOM elements so we had to rely on a browser script.
The script is available here and can be used Tampermonkey - an addon that allows you to install enhancement scripts on any major browser.
-
If you are uncomfortable with adding Tampermonkey script, you can use a bookmarklet:
Add a bookmark to your browser called "Highlight Tags" and add the following as a URL:
javascript:jQuery(".audit-events .Change .info").each(function(){if("Tags"==jQuery(this).find("label").text().trim()){var e=jQuery(this).find("label").html(),t=jQuery(this).clone().children().remove().end().html(),i=jQuery(this).find("del").html(),n=jQuery(this).find("div.via").html(),l=jQuery(this).clone().children().remove().end().text().trim().split(" ");l=l.filter(function(e){return""!=e});var r=jQuery(this).find("del").text().trim().split(" "),c=l.filter(function(e){return!r.includes(e)}),d=r.filter(function(e){return!l.includes(e)});c.forEach(function(e){t=t.replace(e,'<b style="color:green;">'+e+"</b>")}),d.forEach(function(e){i=i.replace(e,'<b style="color:red;">'+e+"</b>")}),console.log(e),jQuery(this).html("<label>"+e+"</label>"+t+"<del>"+i+'</del><div class="via">'+n+"</div>")}})
When you open a ticket events page, click the bookmarklet in the bookmarks toolbar and the tags will get highlighted.
-
This is awesome!
Thanks for sharing Tal :)
-
This is really great - very much needed!
-
@... thank you very much for that snippet.
And Zendesk, what do you think of setting up a "diff" view for the tags in the event view? There is NO NEED of "putting all tags, strikethrough, putting all tags again plus one, happy searching".
PLEASE. (I'm, sure this is already in the product suggestions, I just didnt find it)
Oliver
Iniciar sesión para dejar un comentario.
4 Comentarios