OnStatusChange

From Request Tracker Wiki
Revision as of 16:15, 6 April 2016 by Admin (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RT is distributed with condition 'On Resolve' which is based on module RT::Condition::StatusChange. This module has functionality to handle other statuses as well, but only one thing you have to do. You have to insert description of the new scrip condition into database of the RT.

To get condition 'On Stall':

INSERT INTO ScripConditions(
  Name,
  Description,
  ExecModule,
  Argument,
  ApplicableTransTypes,
  Creator,
  Created,
  LastUpdatedBy,
  LastUpdated
) VALUES (
  'On Stall',
  'Whenever a ticket is stalled',
  'StatusChange',
  'stalled',
  'Status',
  <user_id>,
  NOW(),
  <user_id>,
  NOW()
);

Get user id from other records in this table, this id is not used much, but should be correct.

To get 'On Delete' and other conditions you have to insert similar data where Argument field matches the status value.