Re: [rt-users] Scrip to automatically set Owner based on a Custom Field

2009-10-30 Thread Emmanuel Lacour
On Thu, Oct 29, 2009 at 04:50:47PM -0700, jrummel wrote: Hi everyone, I have a select-one Custom Field called Product with 5 products in it. Based on what product is selected (on create), I would like a specific user to be set as the Owner (ex: ticket is created with Product A selected,

Re: [rt-users] Scrip to automatically set Owner based on a Custom Field

2009-10-30 Thread Carlos Garcia Montoro
I did something similar. If the custom field had a particular value, then the owner had to be a particular user. I did it using this scrip: Custom condition: if ($self-TransactionObj-Type eq 'Create' $self-TicketObj-FirstCustomFieldValue('Product') eq 'Product A') { return 1; } return

Re: [rt-users] Scrip to automatically set Owner based on a Custom Field

2009-10-30 Thread Ken Crocker
Jrummel, We do this for our queue that reviews requests. Based on the Org code, we set the owner for the person best suited to evaluate tickets for that organization. This is our code: # # Custom action Preparation

Re: [rt-users] Scrip to automatically set Owner based on a Custom Field

2009-10-30 Thread jrummel
Thank you all so much for your time. I got it to work! Expanding on it further: Say I have 40 products, and 5 users. Each of these 5 users works on more than one product. Would I then have to make 5 different scrips with OR statements in them? Ideally, I would like to be able to add a

Re: [rt-users] Scrip to automatically set Owner based on a Custom Field

2009-10-30 Thread Ken Crocker
Jrummel, Again, look at the code I sent you. In it you have on a few users working on more than one ORG code. Set up a qw( ...) with your values and you're set. Kenn LBNL On 10/30/2009 12:23 PM, jrummel wrote: Thank you all so much for your time. I got it to work! Expanding on it

[rt-users] Scrip to automatically set Owner based on a Custom Field

2009-10-29 Thread jrummel
Hi everyone, I have a select-one Custom Field called Product with 5 products in it. Based on what product is selected (on create), I would like a specific user to be set as the Owner (ex: ticket is created with Product A selected, so John Smith works on Product A, thus should automatically be