[rt-users] Scrip to check who updated a CustomField

Kevin Falcone falcone at bestpractical.com
Fri Nov 18 12:26:14 EST 2011


On Wed, Nov 16, 2011 at 03:35:09PM -0700, Brent Wiese wrote:
>    I have scrips that will check the value of a custom field and perform actions based on it.
> 
>    But what I can't seem to figure out is how to show who made the custom field change.
> 
>    Specifically, I'm trying to compare who updated 2 custom fields. I have a case where I have a
>    group of users allowed to change these 2 fields, but the same user isn't allowed to change
>    both. So I need to compare who changed the 2 fields, and if they're the same user, perform an
>    action (ie: set ticket stalled or email adminCC's or whatever).
> 
>    I'm pretty new to object oriented programming (especially under Perl), but it looks like I
>    should be able to check "LastUpdatedBy"; I'm just not sure how.

I suspect you want the Transaction object's CreatorObj which will be
the user who made the change.  Transactions don't tend to be updated,
so LastUpdatedByObj should be the same as CreatorObj

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111118/91addb10/attachment.sig>


More information about the rt-users mailing list