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
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
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
___
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
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
*
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
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
]
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
$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
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
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
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 =
: [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
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
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
-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
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
: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
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
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
-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
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
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
23 matches
Mail list logo