RTIR 3.2.1 Documentation

RT::IR

Go to latest version →

FUNCTIONS

IsStaff

Is the user id passed in a member of one of the DutyTeam groups

Useful for differentiating between actions by a user of the system vs actions by someone flagged to work on RTIR.

OurQueue

Takes queue name or RT::Queue object and returns its type (see "TicketType"). Returns undef if argument is not valid. Returns empty string if queue is not one of RTIR's.

Types

Returns a list of valid TicketTypes

Queues

Returns a list of the core RTIR Queue names

TicketType

Returns type of a ticket. Takes either Ticket or Queue argument. Both arguments could be objects or IDs, however, name of a queue works too for Queue argument. If the queue argument is defined then the ticket is ignored even if it's defined too.

Statuses

Return sorted list of unique statuses for one, many or all RTIR queues.

Takes arguments 'Queue', 'Active' and 'Inactive'. By default returns initial and active statuses. Queue can be an array reference to list several queues.

Examples:

    RT::IR->Statuses()
    RT::IR->Statuses( Queue => 'Blocks' );
    RT::IR->Statuses( Queue => [ 'Blocks', 'Incident Reports' ] );
    RT::IR->Statuses( Active => 0, Inactive => 1 );

Incidents

Takes a ticket and returns collection of all incidents this ticket is member of.

RelevantIncidents

Takes a ticket and returns collection of incidents this ticket is member of excluding abandoned incidents.

IncidentHasActiveChildren

IsLinkedToActiveIncidents $ChildObj [$IncidentObj]

Returns number of active incidents linked to child ticket (IR, Investigation, Block or other). If second argument provided then it's excluded from count.

When function return zero that means that object has no active parent incidents.

← Back to index