[rt-users] Spawn multiple child tickets

Jonathan Rummel jrummel at imapp.com
Wed Jun 9 13:41:09 EDT 2010


That's correct, Kenn.  If they select 3 values, I want 3 child tickets and so
on.  However, that's my main problem.  I've done what you're suggesting (by
using the code I provided, with one scrip for each state), and it only
creates a child ticket for the first option selected.  Any ideas?

Jonathan



Kenneth Crocker wrote:
> 
> Jonathan,
> 
> If I understand this right, you want to create a child ticket for every
> value the user selects in the Custom Field. If they choose Florida and
> Maine, then you want two child tickets. If they select Florida, you want
> one. What if they select 3 or 4 values? If this is the case, I would
> create
> a scrip for each possible value, that way, no matter how many they select,
> each one will create a child ticket.
> 
> Kenn
> LBNL
> 
> On Wed, Jun 9, 2010 at 9:10 AM, Jonathan Rummel <jrummel at imapp.com> wrote:
> 
>>
>> Thanks, Kevin.  I'm pretty much doing this on a novice level, and could
>> use
>> a
>> little more explaining if possible.  Please see notes in caps and
>> parenthesis below:
>>
>> Jonathan
>>
>> Your condition only checks if the first value is Florida and then
>> again hardcodes the first value into the ticket creation.  Using
>> FirstCustomFieldValue is never going to show you the second value.
>>
>> (HOW DO I REFERENCE THE 2ND, 3RD, ETC. CUSTOM FIELD VALUES IN MY
>> CONDITION?
>> I DON'T SUPPOSE IT'S AS EASY AS "SecondCustomFieldValue".)
>>
>> CreateTickets can create multiple tickets by defining them in the
>> Template with differing ===Create-Ticket: lines (see the pod in the
>> action) but that requires you to know how many tickets you want.
>>
>> (COULD YOU PLEASE EXPLAIN THE ABOVE FURTHER? I'M NOT SURE I COMPLETELY
>> UNDERSTAND.)
>>
>> I believe in the past people have advised that you either write a look
>> that calls Ticket->Create for each CustomFieldValue, but you should be
>> able to generate the template entirely within {} for each
>> CustomFieldValue if you want to go that route.
>>
>> -kevin
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Spawn-multiple-child-tickets-tp28755908p28832522.html
>> Sent from the Request Tracker - User mailing list archive at Nabble.com.
>>
>>
>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>> Buy a copy at http://rtbook.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/Spawn-multiple-child-tickets-tp28755908p28833645.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.




More information about the rt-users mailing list