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 wrote:
> 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
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 wrote:
> Hi All,
>
> Silly question but, how can I access the Attachments for a related
> Transaction vi
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
___
http://lists.bestpractical.com/cgi-bi
Found it,
$TicketObj->FirstCustomFieldValue('The CF Name');
On Thu, Jun 11, 2009 at 9:59 AM, Aaron Guise 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 Custom field Valu
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
*
___
$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
L PROTECTED]>
To: Vivek Khera <[EMAIL PROTECTED]>
CC: RT Users
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 stored as
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
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
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 $adminccl
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 = N
ransactionObj->Type eq ...' instead of 'TicketObj->Type eq ...'? or
>> something else entirely?
> TransactionObj->Type
>
>>
>> Greg Evans
>> RT newbie :)
>>
>>
>>
>>> -Original Message-
>>> From: [EMAIL PR
from (no value)
> to '24.5'
> #Fri Feb 08 15:42:40 2008 RT_System - TimeWorked changed from '24' to ''
>
> # Fri Feb 08 15:42:40 2008 RT_System - TimeWorked changed from (no value)
> to '24.5'
> #Fri Feb 08 15:42:40 2008 RT_System - TimeWor
#x27;'
#Fri Feb 08 15:42:40 2008 RT_System - TimeWorked changed from (no value)
to '24.5'
It will continue adding time until you kill httpd. This has got to be
something simple that I am missing. At least I think so... Ideas?
Thanks,
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
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
il 10, 2007 9: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
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
Karen Nyenhuis wrote:
> 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 Essentia
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 wr
-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 diffe
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 upd
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 cu
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 current status of the ticket, CHANGE the current status of sai
25 matches
Mail list logo