<div dir="ltr">I have been looking to implement automatic Cc adds for new users copied into threads, taking the code here and adapting it:<div><br></div><div><a href="http://wiki.bestpractical.com/view/AddWatchersOnCorrespond#">http://wiki.bestpractical.com/view/AddWatchersOnCorrespond#</a><br>
</div><div><br></div><div>I have created 2 custom scrips based on that, one that triggers on Create and another on Correspond. (I am not using $ParseNewMessageForTicketCcs because I only want this on specific queues).</div>
<div><br></div><div>The add-Cc's function is working perfectly. However, we like to generate an email notify whenever we have made a change to a ticket's state. I am trying to find a way to generate an AdminCc notification that one or more Cc's were added to the ticket, and I would assume that needs to happen within the custom action cleanup code, after the Cc-add processing has been finished.</div>
<div><br></div><div>I've looked around on the wiki, Google, and looked through O'Reilly's "RT Essentials" book on Safari Online, but I can't see a way to make this happen. I've tried getting the AdminCc list with code similar to this:</div>
<div><br></div><div>$adminccs = $self->TicketObj->AdminCcAddresses;</div><div><br></div><div>But I get a blank return using that. I've also tried using RT::User->new and grabbing data from the returned object, but I get Perl errors about the method not being implemented (even if I "use RT::User").</div>
<div><br></div><div>All I really need is either a way to get the admincc list, and then a way to send an email, or a packaged-up method that knows how to get the admincc list itself, that I can pass a message text to. Does such an animal exist?</div>
<div><br></div><div>Thanks in advance for any help. I feel like I'm beating my head against a wall at this point.</div><div><br></div><div>Dan</div><div><br></div></div>