Child Ticket Creation with PDF Attachment

Hi ,

Im trying to create a Child Ticket with a pdf attachment .The pdf which needs to be attached to the Child Ticket should be same as the pdf attached in the Parent Ticket.The Template which I use fails to attach the Parent ticket pdf attachment to the Child Ticket. The Template which I tried is given below:

===Create-Ticket: Child
Queue: 13
Status: open
Parents: TOP
Type: ticket
Content-Type: application/pdf
Due: {$Tickets{‘TOP’}->Due()}
RT-Attach-Message: Yes
Contents: {$Tickets{‘TOP’}->Transactions->First->Attachments();}

Any Help?

Thanks,
Tony John

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

Im trying to create a Child Ticket with a pdf attachment .The pdf which
needs to be attached to the Child Ticket should be same as the pdf attached
in the Parent Ticket.The Template which I use fails to attach the Parent
ticket pdf attachment to the Child Ticket. The Template which I tried is
given below:
Why would you want to clog your database with duplicate content like that?
You could simply given the URL of the parent’s attachment in the child
ticket somewhere (body or a custom field)

Please could you give me any example to get the url of parent ticket attachment?

Thanks,
Tony-----Original Message-----
From: Jerrad Pierce [mailto:jpierce@cambridgeenergyalliance.org]
Sent: Tuesday, December 29, 2009 1:15 PM
To: Tony John - ERS, HCL Tech
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Child Ticket Creation with PDF Attachment

Im trying to create a Child Ticket with a pdf attachment .The pdf which
needs to be attached to the Child Ticket should be same as the pdf attached
in the Parent Ticket.The Template which I use fails to attach the Parent
ticket pdf attachment to the Child Ticket. The Template which I tried is
given below:
Why would you want to clog your database with duplicate content like that?
You could simply given the URL of the parent’s attachment in the child
ticket somewhere (body or a custom field)

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

I have been looking at trying to figure out how to use this to store attachments on the filesystem and replace them with http links into the tickets, but haven’t had much time. It may be an interesting option.

http://detach.optimism.cc/

–RyanFrom: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Tony John - ERS, HCL Tech
Sent: Monday, December 28, 2009 11:50 PM
To: Jerrad Pierce
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Child Ticket Creation with PDF Attachment

Please could you give me any example to get the url of parent ticket attachment?

Thanks,
Tony

Please could you give me any example to get the url of parent ticket >attachment?
It’s not complicated, but not trivial. See and adapt
Ticket/Elements/ShowAttachments

http://detach.optimism.cc/
Oooh! Thanks for that. Just what this nmh user has been wanting.

Tony,

Did you have any success with this? I’m trying to do something similar.

Thanks!
Jonathan

TONY JOHN - ERS, HCL Tech wrote:

Hi ,

Im trying to create a Child Ticket with a pdf attachment .The pdf which
needs to be attached to the Child Ticket should be same as the pdf
attached in the Parent Ticket.The Template which I use fails to attach the
Parent ticket pdf attachment to the Child Ticket. The Template which I
tried is given below:

===Create-Ticket: Child
Subject: {$Tickets{‘TOP’}->Subject}
Queue: 13
Status: open
Parents: TOP
Type: ticket
Content-Type: application/pdf
Due: {$Tickets{‘TOP’}->Due()}
RT-Attach-Message: Yes
Contents: {$Tickets{‘TOP’}->Transactions->First->Attachments();}

Any Help?

Thanks,
Tony John

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.



The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

View this message in context: http://old.nabble.com/Child-Ticket-Creation-with-PDF-Attachment-tp26951892p28963734.html