Access Keys:
Skip to content (Access Key - 0)

Automatically resolve Request Tracker ticket when moved into a queue

Context

  • Request Tracker (RT) on help.mit.edu

Why might you want to do this?

This answer works best in combination with other automatic actions. The canonical example relates to RT queues that have been moved to a different ticket tracking system, such as ServiceNow. You may have a Scrip and Template in place to catch any tickets unintentionally moved into your queue, and automatically send them on to your new ticket tracking system.

However, now you're left with a new or open ticket in your queue. You can use the below Scrip to automatically resolve a ticket that was moved into your queue. The sequence doesn't really matter, unless your "move" template checks the ticket status, but you can set the stage to TransactionBatch to have the auto-resolve Scrip run at the end of the sequence.

Answer

Attaching the Scrip below to your queue will automatically change a ticket's status to "Resolved" when the ticket is moved into the queue, unless the status is already "Resolved".

Setting up the Scrip

You need to be an administrator for your RT queue to follow these instructions.

  1. Navigate to Tools > Configuration > Queues > Select
  2. Select your queue from the list of queues
  3. On your queue's configuration screens navigate to the Scrips tab (which is really a menu) and select Create
  4. Fill out the Create a Scrip... page as follows:
    • Description: On Queue Change use Custom Action to Resolve
    • Condition: On Queue Change
    • Action: User Defined
    • Template: Global Template: Blank
    • Stage: TransactionBatch
    • Custom condition: (Leave blank)
    • Custom action preparation code:
      if( $self->TicketObj->Status ne "resolved" ) {
          $self->TicketObj->SetStatus( "resolved" );
      }
      return 1;
      
    • Custom action cleanup code:
      return 1;
      
  5. Click the Save Changes button to create your Scrip

IS&T Contributions

Documentation and information provided by IS&T staff members


Last Modified:

March 08, 2019

Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Labels:
rt4 rt4 Delete
request_tracker request_tracker Delete
c-request-tracker c-request-tracker Delete
c-rt-queue-admin c-rt-queue-admin Delete
c-rt-queue-admin-shortcut c-rt-queue-admin-shortcut Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Feedback
This product/service is:
Easy to use
Average
Difficult to use

This article is:
Helpful
Inaccurate
Obsolete
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki