Want to add Watch List in Catalog Item

Rudhra murthi
Tera Contributor

Please help,

 

 I am looking for a solution in which I can add 'Watch List' to the catalog Item so that I can add the person either by 'email' or by there user name so that they will be in the loop of every update against that ticket.

I already know that we can add list_collector in catalog item but that thing donot allow to add the watcher by mail. If we look at the OOB 'watchlist' we can add the users either by mail or by user id.

1 REPLY 1

Claude DAmico
Kilo Sage

I'm not having any luck with List Collector displaying additional columns in the suggestion list or even searching them using different variable attributes in a catalog item. List Collector is also different from List (which has the additional Email box for just adding an e-mail address).

 

One suggestion I have is to add a Reference field with the following attributes:

  • ref_auto_completer=AJAXTableCompleter
  • ref_ac_columns=email
  • ref_ac_columns_search=true

This should allow someone to search by name or e-mail address.

 

Then, create a client script to do something like this:

  1. Get the value of the List Collector and turn it into an array
  2. Store the value of the Reference
  3. Check the array for the reference value (array.indexOf(ref))
  4. If exist (array.indexOf(ref) != -1), remove from List Collector
  5. If not exist, add to List Collector
  6. Clear the value of the Reference
Claude E. D'Amico, III - CSA