Assets 1.05 Documentation

Assets Config

NAME

Assets configuration

Base configuration

Lifecycles

Each asset catalog uses a lifecycle, exactly as queues for tickets do -- and the configuration is the same. See "Lifecycles" in RT_Config for documentation on them. Asset lifecycles are differentiated from dicket lifecycles by their type:

    assets => {
        type     => "asset",     # Note the type, here
        initial  => [ 'new' ],
        active   => [ 'allocated', 'in-use' ],
        inactive => [ 'recycled', 'stolen', 'deleted' ],
        # ...
    }
@AssetQueues

This should be a list of names of queues whose tickets should always display the "Assets" box. This is useful for queues which deal primarily with assets, as it provides a ready box to link an asset to the ticket, even when the ticket has no related assets yet.

$DefaultCatalog

This provides the default catalog after a user initially logs in. However, the default catalog is "sticky," and so will remember the last-selected catalog thereafter.

$AssetSearchFields

Specifies which fields of RT::Asset to match against and how to match each field when performing a quick search on assets. Valid match methods are LIKE, STARTSWITH, ENDSWITH, =, and !=. Valid search fields are id, Name, Description, or custom fields, which are specified as "CF.1234" or "CF.Name"

$AssetSearchFormat

The format that results of the asset search are displayed with. This is either a string, which will be used for all catalogs, or a hash reference, keyed by catalog's name/id. If a hashref and neither name or id is found therein, falls back to the key ''.

If you wish to use the multiple catalog format, your configuration would look something like:

    Set($AssetSearchFormat, {
        'General assets' => q[Format String for the General Assets Catalog],
        8                => q[Format String for Catalog 8],
        ''               => q[Format String for any catalogs not listed explicitly],
    });
$AssetSummaryFormat

The information that is displayed on ticket display pages about assets related to the ticket. This is displayed in a table beneath the asset name.

$AssetSummaryRelatedTicketsFormat

The information that is displayed on ticket display pages about tickets related to assets related to the ticket. This is displayed as a list of tickets underneath the asset properties.

%AdminSearchResultFormat

The Catalogs key of this standard RT configuration option (see "%AdminSearchResultFormat" in RT_Config) controls how catalogs are displayed in their list in the admin pages.

$AssetBasicCustomFieldsOnCreate

Specify a list of Asset custom fields to show in "Basics" widget on create.

e.g.

Set( $AssetBasicCustomFieldsOnCreate, [ 'foo', 'bar' ] );

← Back to index