[rt-users] Auto Create Ticket Scrip

Trev trevor at onepost.net
Sun Jan 11 12:32:14 EST 2015


Syslog Errors -- The $template_id seems warning level to me, but may be an
issue. I went into the database and confirmed the data correct for template
ids etc.. etc..

Attached configuration snapshots..

Any further thoughts appreciated, thanks!

Jan 11 12:23:16 jamie RT: [9697] Committing scrip #13 on txn #1759 of
ticket #125 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)
Jan 11 12:23:16 jamie RT: [9697] Line: ===
(/opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm:541)
Jan 11 12:23:16 jamie RT: [9697] ===Create Ticket: ticket1
(/opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm:544)
Jan 11 12:23:16 jamie RT: [9697] Use of uninitialized value $template_id in
hash element at /opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm line 594.
Jan 11 12:23:16 jamie RT: [9697] Subject: Auto Generation Test
 (/opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm:544)
Jan 11 12:23:16 jamie RT: [9697] Use of uninitialized value $template_id in
hash element at /opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm line 594.
Jan 11 12:23:16 jamie RT: [9697] Queue => RT Testing
(/opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm:544)
Jan 11 12:23:16 jamie RT: [9697] Use of uninitialized value $template_id in
hash element at /opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm line 594.
Jan 11 12:23:16 jamie RT: [9697] Content: Someone has created a ticket. you
should review and approve it,
(/opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm:544)
Jan 11 12:23:16 jamie RT: [9697] Use of uninitialized value $template_id in
hash element at /opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm line 594.
Jan 11 12:23:16 jamie RT: [9697] so they can finish their work
(/opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm:544)
Jan 11 12:23:16 jamie RT: [9697] Use of uninitialized value $template_id in
hash element at /opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm line 594.
Jan 11 12:23:16 jamie RT: [9697] ENDOFCONTENT
(/opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm:544)
Jan 11 12:23:16 jamie RT: [9697] Use of uninitialized value $template_id in
hash element at /opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm line 594.




​


On Sat, Jan 10, 2015 at 7:51 PM, Alex Peters <alex at peters.net> wrote:

> A "user-defined" action will do nothing if the corresponding "custom
> action code" boxes are empty.  (That should probably actually trigger an
> error.)
>
> Setting your scrip's action to "Create Tickets" should have your scrip
> working as expected.
>
> You can also use queue names in create-ticket templates if you'd prefer
> the template to be a little more self-explanatory.
>
> On 11 January 2015 at 08:00, Trev <trevor at onepost.net> wrote:
>
>> Hi all,
>>
>>   4.2.4 on Debian
>>
>>   Created a scrip that calls a custom template to create a ticket in a
>> queue when another ticket is created. Seems easy enough, but I am having a
>> little bit of difficulty implementing it.
>>
>>   So this is applied to a queue that I am opening tickets selecting... no
>> 'auto tickets' are creating.
>>
>>   What am I doing wrong or missing?
>>
>>   Thanks!
>>
>>   The Scrip:
>>
>>    - Description: New User - Auto Create Tickets
>>    - Condition:    On Create
>>    - Action:        User Defined (I've toggled this back and forth from
>>    Open Tickets to User Defined)
>>    - Template:    New User - Tickets
>>    - The 3 boxes below are EMPTY (custom conditions, prep and action...)
>>
>>
>>   The Template:
>>
>>    - Name:         New User - Tickets
>>    - Description:
>>    - Type:          Perl (default)
>>
>>
>> ===Create-Ticket: IT Security Modifications
>> Queue           => 14
>> Subject: Access for {$Tickets{'TOP'}->Subject()}
>> Owner: {$Tickets{'TOP'}->Owner()}
>> Depended-On-By: {$Tickets{'TOP'}->Id()}
>> Content: Please attach approved changes for further approvals and
>> implementation.
>> ENDOFCONTENT
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150111/bad94f85/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture2.PNG
Type: image/png
Size: 19476 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150111/bad94f85/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture3.PNG
Type: image/png
Size: 22410 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150111/bad94f85/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture1.PNG
Type: image/png
Size: 14646 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150111/bad94f85/attachment-0002.png>


More information about the rt-users mailing list