
##############
TicketWatchSet
##############


****
NAME
****


Kernel::System::ProcessManagement::TransitionAction::TicketWatchSet - A module to enables or disables watching of a ticket.


********
SYNOPSIS
********


All TicketWatchSet functions.


****************
PUBLIC INTERFACE
****************


new()
=====


create an object. Do not use it directly, instead use:


.. code-block:: perl

     my $TicketWatchSetObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::TransitionAction::TicketWatchSet');



Run()
=====


Runs TransitionAction TicketWatchSet


.. code-block:: perl

     my $Success = $TicketWatchSetActionObject->Run(
         UserID                   => 123,
 
         # Ticket contains the result of TicketGet including dynamic fields.
         Ticket                   => \%Ticket,   # required
 
         ProcessEntityID          => 'P123',
         ActivityEntityID         => 'A123',
         TransitionEntityID       => 'T123',
         TransitionActionEntityID => 'TA123',
 
         # Config is the hash stored in a Process::TransitionAction's config key.
         Config                   => {
             Action    => 'Subscribe', # Subscribe/Unsubscribe
             UserLogin => 'UserLogin1, UserLogin2, UserLogin3',
 
             # or
             Action           => 'Subscribe', # Subscribe/Unsubscribe
             PostMasterSearch => 'UserLogin1@znuny.com, UserLogin2@znuny.com, UserLogin3@znuny.com',
 
             # or
             Action  => 'Subscribe', # Subscribe/Unsubscribe
             UserIDs => '1, 2, 3',
 
             # or
             Action => 'UnsubscribeAll',
 
             UserID => 123,                     # optional, to override the UserID from the logged user
         }
     );


Returns:


.. code-block:: perl

     my $Success = 1; # 0



_TicketWatch()
==============


Enables or disables watching of a ticket.


.. code-block:: perl

     my $Success = $Object->_TicketWatch(
         Action      => 'Subscribe', # or 'Unsubscribe'
         TicketID    => 8754,
         WatchUserID => 564,
         UserID      => 23,
     );


Returns:


.. code-block:: perl

     my $Success = 1;




