ITSMChangeManagement -> rel-3_2 API documentation

NAME

Kernel::System::ITSMChange::ITSMCondition::Object::ITSMWorkOrder - condition itsm workorder object lib

SYNOPSIS

All ITSMWorkOrder object functions for conditions in ITSMChangeManagement.

PUBLIC INTERFACE

  • new()

    create an object

    use Kernel::Config;
    use Kernel::System::Encode;
    use Kernel::System::Log;
    use Kernel::System::DB;
    use Kernel::System::Main;
    use Kernel::System::Time;
    use Kernel::System::ITSMChange::ITSMCondition::Object::ITSMWorkOrder;
    
    my $ConfigObject = Kernel::Config->new();
    my $EncodeObject = Kernel::System::Encode->new(
        ConfigObject => $ConfigObject,
    );
    my $LogObject = Kernel::System::Log->new(
        ConfigObject => $ConfigObject,
        EncodeObject => $EncodeObject,
    );
    my $MainObject = Kernel::System::Main->new(
        ConfigObject => $ConfigObject,
        EncodeObject => $EncodeObject,
        LogObject    => $LogObject,
    );
    my $TimeObject = Kernel::System::Time->new(
        ConfigObject => $ConfigObject,
        LogObject    => $LogObject,
    );
    my $DBObject = Kernel::System::DB->new(
        ConfigObject => $ConfigObject,
        EncodeObject => $EncodeObject,
        LogObject    => $LogObject,
        MainObject   => $MainObject,
    );
    my $ConditionObjectITSMWorkOrder = Kernel::System::ITSMChange::ITSMCondition::Object::ITSMWorkOrder->new(
        ConfigObject => $ConfigObject,
        EncodeObject => $EncodeObject,
        LogObject    => $LogObject,
        MainObject   => $MainObject,
        TimeObject   => $TimeObject,
        DBObject     => $DBObject,
    );
    
  • DataGet()

    Returns workorder data in an array reference.

    my $WorkOrderDataRef = $ConditionObjectITSMWorkOrder->DataGet(
        Selector => 1234,
        UserID   => 2345,
    );
    
  • CompareValueList()

    Returns a list of available CompareValues for the given attribute id of a workorder object as hash reference.

    my $CompareValueList = $ConditionObjectITSMWorkOrder->CompareValueList(
        AttributeName => 'WorkOrderStateID',
        UserID        => 1,
    );
    

    Returns a hash reference like this, for the workorder attribute 'WorkOrderStateID':

    $CompareValueList = {
        10    => 'created',
        12    => 'accepted',
        13    => 'ready',
        14    => 'in progress',
        15    => 'closed',
        16    => 'canceled',
    }
    
  • SelectorList()

    Returns a list of all selectors available for the given workorder object id and condition id as hash reference

    my $SelectorList = $ConditionObjectITSMWorkOrder->SelectorList(
        ObjectID    => 1234,
        ConditionID => 5,
        UserID      => 1,
    );
    

    Returns a hash reference like this:

    $SelectorList = {
        10    => '1 - WorkorderTitle of Workorder 1',
        12    => '2 - WorkorderTitle of Workorder 2',
        34    => '3 - WorkorderTitle of Workorder 3',
        'any' => 'any',
        'all' => 'all',
    }
    

TERMS AND CONDITIONS

This software is part of the OTRS project (http://otrs.org/).

This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (AGPL). If you did not receive this file, see http://www.gnu.org/licenses/agpl.txt.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

  • Around line 148:

    =cut found outside a pod block. Skipping to next block.