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
pgpTdwjOISjcM.pgp
Description: PGP signature
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Barcelona, Spain November 28 & 29, 2011
