[rt-users] Scrip question

2013-12-16 Thread Roman Steven
Hi RT 3.8.7 MySQL I have been asked to do the following: when updating a ticket and a specific User is selected as the new Owner, I will Force that User to be the new Owner. We have several Users which I need to Force as new Owners. Is it possible to create a Scrip to do this? Should I use the

Re: [rt-users] Scrip Question

2009-11-16 Thread Aaron Guise
Thanks, That was exactly as I needed. On Fri, Nov 13, 2009 at 6:46 PM, Ruslan Zakirov ruslan.zaki...@gmail.comwrote: Hello Aaron, $txn-Content returns text of the comment/reply, but if you need all attachements then you should walk $txn-Attachments collection. On Fri, Nov 13, 2009 at 6:18

[rt-users] Scrip Question

2009-11-12 Thread Aaron Guise
Hi All, Silly question but, how can I access the Attachments for a related Transaction via a scrip? I am wanting to collect a piece out of the plaintext content to populate a CF on comment. -- Regards, Aaron ___

Re: [rt-users] Scrip Question

2009-11-12 Thread Ruslan Zakirov
Hello Aaron, $txn-Content returns text of the comment/reply, but if you need all attachements then you should walk $txn-Attachments collection. On Fri, Nov 13, 2009 at 6:18 AM, Aaron Guise aa...@guise.net.nz wrote: Hi All, Silly question but,  how can I access the Attachments for a related

[rt-users] Scrip Question

2009-06-10 Thread Aaron Guise
Hi, I want to check if a Custom Field Value is Set to a particular value and if so don't send autoreply on TicketCreate. My Question is how do I select a Custom field Value within a scrip? *Regards,* *Aaron Guise 027 212 6638 aa...@guise.net.nz *

Re: [rt-users] Scrip Question

2009-06-10 Thread Aaron Guise
Found it, $TicketObj-FirstCustomFieldValue('The CF Name'); On Thu, Jun 11, 2009 at 9:59 AM, Aaron Guise aa...@guise.net.nz wrote: Hi, I want to check if a Custom Field Value is Set to a particular value and if so don't send autoreply on TicketCreate. My Question is how do I select a

Re: [rt-users] Scrip question and how to debug?

2008-03-17 Thread John Arends
Vivek: Looking at log output made me realize that $Owner does not contain the name of the owner. Where is the actual owner name stored as a string? I want to compare that string to Nobody. This seems like it should be fairly simple but I don't understand enough about how RT works internally

Re: [rt-users] Scrip question and how to debug?

2008-03-17 Thread Ham MI-ID, Torsten Brumm
] To: Vivek Khera [EMAIL PROTECTED] CC: RT Users rt-users@lists.bestpractical.com Sent: Mon Mar 17 16:19:10 2008 Subject: Re: [rt-users] Scrip question and how to debug? Vivek: Looking at log output made me realize that $Owner does not contain the name of the owner. Where is the actual owner name

Re: [rt-users] Scrip question and how to debug?

2008-03-17 Thread John Arends
$Owner-Name was what I was looking for. I'll have to post my scrip so other people can figure out what is going on. John Arends wrote: Vivek: Looking at log output made me realize that $Owner does not contain the name of the owner. Where is the actual owner name stored as a string? I

[rt-users] Scrip question and how to debug?

2008-03-14 Thread John Arends
I have a scrip that should be adding the owner as an AdminCC on ticket create. It works fine. However, if a ticket is created with no owner set, it sets an AdminCC as Nobody, which is annoying. I threw an if statement in there to try to handle it, but I am doing something wrong. my

Re: [rt-users] Scrip question and how to debug?

2008-03-14 Thread Vivek Khera
On Mar 14, 2008, at 2:25 PM, John Arends wrote: Second, is there a good way to debug scrips? I feel like I'm just feeling around in the dark and don't know how to tell if they're really working, or what the contents of variables are, etc. If I was writing sprinkle your scrip with lines

Re: [rt-users] Scrip question...Getting there slowly...Time Worked

2008-02-27 Thread Nat Creamer
Greg, With apologies if this is off-base but I see process as the answer to your problem. Whether an issue needs to be tracked for troubleshooting over the phone, at the desk or in the server room it should be created from the get go. Here's my rationale - I look at the first comment (STATUS =

Re: [rt-users] Scrip question...Getting there slowly...Time Worked

2008-02-09 Thread Greg Evans
: [rt-users] Scrip question...Getting there slowly...Time Worked On Feb 9, 2008 2:57 AM, Greg Evans [EMAIL PROTECTED] wrote: following up on my own post to the list...The following code is *mostly* working but there is a GLARING ERROR that makes it unusable Please NOTE THE ABOVE because if you

[rt-users] Scrip question...Getting there slowly...Time Worked

2008-02-08 Thread Greg Evans
As has been mentioned I am working on trying to get a time worked scrip up and running. So far everything is going well except for one thing, I can retrieve dates from the ticket without problem and they come through like: 2008-02-08 21:24:49 This seems like a fine format, but once I have 2 of

Re: [rt-users] Scrip question...Getting there slowly...Time Worked

2008-02-08 Thread Ruslan Zakirov
Subject: [rt-users] Scrip question...Getting there slowly...Time Worked As has been mentioned I am working on trying to get a time worked scrip up and running. So far everything is going well except for one thing, I can retrieve dates from the ticket without problem and they come

Re: [rt-users] Scrip question...Getting there slowly...Time Worked

2008-02-08 Thread Greg Evans
-users@lists.bestpractical.com Subject: [rt-users] Scrip question...Getting there slowly...Time Worked As has been mentioned I am working on trying to get a time worked scrip up and running. So far everything is going well except for one thing, I can retrieve dates

[rt-users] Scrip question: Approvals and changing ownership of the originating ticket

2007-08-01 Thread Chris Nelson
I implemented the approval process listed in the wiki here: http://wiki.bestpractical.com/view/ApprovalCreation If a ticket is created via email sent to the approval queue, the ticket and the resulting approval ticket do not have an owner. I wrote a scrip to set the owner of the approval

Re: [Fwd: Re: [rt-users] Scrip question]

2007-04-12 Thread Jesse Vincent
:47:46 AM EDT To: Kenneth Crocker [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [rt-users] Scrip question At Monday 4/9/2007 08:13 PM, Kenneth Crocker wrote: To all, I have a question that perhaps the longtime users of RT can answer; I am planning a series of scrips

Re: [rt-users] Scrip question

2007-04-10 Thread Stephen Turner
At Monday 4/9/2007 08:13 PM, Kenneth Crocker wrote: To all, I have a question that perhaps the longtime users of RT can answer; I am planning a series of scrips that will evaluate certain Custom Fields (which can only be modified by certain people) and based on that result and the

Re: [rt-users] Scrip question

2007-04-10 Thread Borut Mrak
Stephen Turner wrote: Also, there's a potential trap you can get caught in when updating ticket fields in scrips - if the update that fires the scrip is triggered from a ticket update screen, the value that is shown on the screen when the submit button is pressed can override your scrip

Re: [rt-users] Scrip question

2007-04-10 Thread José de Paula Eufrásio Júnior
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Erm, about scrips: What the transaction field means anyway? I'm basing my scrips on http://wiki.bestpractical.com/index.cgi?AutoCloseOnNagiosRecoveryMessages, but I want to auto-deal with Nagios and Cron-Apt automatic emails. Can I create two

Re: [rt-users] Scrip question

2007-04-10 Thread Karen Nyenhuis
Have you tried setting the scrip stage to TransactionBatch? The scrip will then get triggered only once after all transactions have been generated. You then have to iterate over all the transactions to look for your condition. There is an example in the RT Essentials book. Stephen Turner

Re: [rt-users] Scrip question

2007-04-10 Thread Kenneth Crocker
Karen, Borut, Stephan, Thank you all for your replies. My intent is that once a person has already updated a CF, RT would recognise that a transaction has occurred against the ticket and my user-defined condition would execute, which would modify the ticket status field only. It's