Passing CF values to child

All,

Would anyone be able to give me an idea of how to pass a custom field value
through to it’s auto-created child ticket using a template? Right now, my
template looks like this:

===Create-Ticket: jr-ticket-create
Depended-On-By: {$Tickets{‘TOP’}->Id()}
Owner: jrummel
Requestor: {$Tickets{‘TOP’}->Creator}
InitialPriority: {$Tickets{‘TOP’}->Priority}
Queue: Data Analysis
Content: This is a child ticket automatically created from ticket
#{$Tickets{‘TOP’}->Id()}.
ENDOFCONTENT

What I want to do is pass the value that is selected in the “State” custom
field of the parent ticket through to the “State” custom field of the child
ticket so when the child is created, that value is already populated. I’m
using RT 3.6.5 with MySQL. Can anyone please help?

Thanks,
Jonathan
View this message in context: http://old.nabble.com/Passing-CF-values-to-child-tp28880950p28880950.html

All,

Would anyone be able to give me an idea of how to pass a custom field value
through to it’s auto-created child ticket using a template? Right now, my
template looks like this:

What I want to do is pass the value that is selected in the “State” custom
field of the parent ticket through to the “State” custom field of the child
ticket so when the child is created, that value is already populated. I’m
using RT 3.6.5 with MySQL. Can anyone please help?

you can get current value with
{$Tickets{‘TOP’}->FirstCustomFieldValue(‘State’)}

and so add to your template:

CF-State: {$Tickets{‘TOP’}->FirstCustomFieldValue(‘State’)}

… I think

All,

Would anyone be able to give me an idea of how to pass a custom field value
through to it’s auto-created child ticket using a template? Right now, my
template looks like this:

===Create-Ticket: jr-ticket-create
Subject: {$Tickets{‘TOP’}->Subject}
Depended-On-By: {$Tickets{‘TOP’}->Id()}
Owner: jrummel
Requestor: {$Tickets{‘TOP’}->Creator}
InitialPriority: {$Tickets{‘TOP’}->Priority}
Queue: Data Analysis
Content: This is a child ticket automatically created from ticket
#{$Tickets{‘TOP’}->Id()}.
ENDOFCONTENT

What I want to do is pass the value that is selected in the “State” custom
field of the parent ticket through to the “State” custom field of the child
ticket so when the child is created, that value is already populated. I’m
using RT 3.6.5 with MySQL. Can anyone please help?

Jonathan

Please read perldoc /opt/rt3/lib/RT/Action/CreateTickets.pm
which addresses this question, as well as listing all the other valid
options for that template

-kevin