Queue AdminCC

Hi,

I have a queue scrip set up so that if a specific custom field is selected the tickets Queue will be changed to another Queue. This seems to be working well, but when the ticket is created the Scrip for Notify AdminCC on create does not seem to be using the new Queues AdminCC. I have checked the debug logs and the queue changing scrip runs before the Notify AdminCC scrip and after everything is done, the AdminCCs are correct, its just that the change is not finalized till all the Scrips are run.

Is there a way to commit the change at the end of a scrip? Or a way to get around this?

           Christopher Lasater

PGP.sig (475 Bytes)

Christopher,

I have a scrip that does the same thing and I ran into the same problem.
This is how I resolved the issue:

  1. Make sure your RT_SiteConfig.pm file has “TransactionBatch” turned on
  2. Put all the code to change other fields, etc. in the “Prep Code” area
  3. Put the code to change Queues in the “Cleanup Code” area.
  4. Created a second scrip (to notify the AdminCc) that uses the same
    Condition as the first, but name it so that it will execute after the first
    one.

I name all my Notification scrips with “Notify …” but name all my other
scrips (those that change CF’s, ticket data, etc.) with a 1a thru 1d as a
prefix. RT executes scrips in sequence by name.

Hope this helps.

Kenn
LBNLOn Thu, Sep 8, 2011 at 9:46 AM, Christopher Lasater CLasater@taleo.comwrote:

Hi,****

I have a queue scrip set up so that if a specific custom field is selected
the ticket’s Queue will be changed to another Queue. This seems to be
working well, but when the ticket is created the Scrip for Notify AdminCC on
create does not seem to be using the new Queue’s AdminCC. I have checked
the debug logs and the queue changing scrip runs before the Notify AdminCC
scrip and after everything is done, the AdminCC’s are correct, its just that
the change is not finalized till all the Scrips are run. ****


Is there a way to commit the change at the end of a scrip? Or a way to get
around this?****

           Christopher Lasater****

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA — September 26 & 27, 2011
  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Melbourne VIC, Australia — November 28 & 29, 2011
  • Barcelona, Spain — November 28 & 29, 2011

Changing any objects in preparation section is incorrect.

Regards, Ruslan. From phone.

Christopher,

I have a scrip that does the same thing and I ran into the same problem.
This is how I resolved the issue:

  1. Make sure your RT_SiteConfig.pm file has “TransactionBatch” turned on
  2. Put all the code to change other fields, etc. in the “Prep Code” area
  3. Put the code to change Queues in the “Cleanup Code” area.
  4. Created a second scrip (to notify the AdminCc) that uses the same
    Condition as the first, but name it so that it will execute after the
    first
    one.

I name all my Notification scrips with “Notify …” but name all my other
scrips (those that change CF’s, ticket data, etc.) with a 1a thru 1d as a
prefix. RT executes scrips in sequence by name.

Hope this helps.

Kenn
LBNL

Hi,****

I have a queue scrip set up so that if a specific custom field is
selected
the ticket’s Queue will be changed to another Queue. This seems to be
working well, but when the ticket is created the Scrip for Notify AdminCC
on
create does not seem to be using the new Queue’s AdminCC. I have checked
the debug logs and the queue changing scrip runs before the Notify
AdminCC
scrip and after everything is done, the AdminCC’s are correct, its just
that
the change is not finalized till all the Scrips are run. ****


Is there a way to commit the change at the end of a scrip? Or a way to
get

Ruslan,

Please explain why. I have tons of code that does this and they all seem to
work.

Kenn
LBNLOn Mon, Sep 12, 2011 at 12:44 AM, Ruslan Zakirov ruz@bestpractical.comwrote:

Changing any objects in preparation section is incorrect.

Regards, Ruslan. From phone.
08.09.2011 21:27 пользователь “Kenneth Crocker” kfcrocker@lbl.gov
написал:

Christopher,

I have a scrip that does the same thing and I ran into the same problem.
This is how I resolved the issue:

  1. Make sure your RT_SiteConfig.pm file has “TransactionBatch” turned on
  2. Put all the code to change other fields, etc. in the “Prep Code” area
  3. Put the code to change Queues in the “Cleanup Code” area.
  4. Created a second scrip (to notify the AdminCc) that uses the same
    Condition as the first, but name it so that it will execute after the
    first
    one.

I name all my Notification scrips with “Notify …” but name all my other
scrips (those that change CF’s, ticket data, etc.) with a 1a thru 1d as a
prefix. RT executes scrips in sequence by name.

Hope this helps.

Kenn
LBNL

On Thu, Sep 8, 2011 at 9:46 AM, Christopher Lasater <CLasater@taleo.com wrote:

Hi,****

I have a queue scrip set up so that if a specific custom field is
selected
the ticket’s Queue will be changed to another Queue. This seems to be
working well, but when the ticket is created the Scrip for Notify
AdminCC on
create does not seem to be using the new Queue’s AdminCC. I have checked
the debug logs and the queue changing scrip runs before the Notify
AdminCC
scrip and after everything is done, the AdminCC’s are correct, its just
that
the change is not finalized till all the Scrips are run. ****


Is there a way to commit the change at the end of a scrip? Or a way to
get
around this?****

Christopher Lasater****


RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA – September 26 & 27, 2011
  • San Francisco, CA, USA – October 18 & 19, 2011
  • Washington DC, USA – October 31 & November 1, 2011
  • Melbourne VIC, Australia – November 28 & 29, 2011
  • Barcelona, Spain – November 28 & 29, 2011