Retrieve variables via otrs API

English! place to talk about development, programming and coding
Post Reply
artjoms15
Znuny advanced
Posts: 121
Joined: 30 Aug 2011, 10:48
Znuny Version: 3.3.8 && 4.0.9
Real Name: Artjoms Petrovs
Location: Latvia

Retrieve variables via otrs API

Post by artjoms15 »

Hello everyone...
Well, I am a starter programmer and recently got my hands on OTRS. I have been struggling a lot with one thing - How to retrieve variables from other modules? E.g. I want to do something like...

Code: Select all

$Statuss = $Self->Ticketsomething... ->State;
$Self->{TicketAcl}->{'ACL-Reply-State-ALL'} = {
    Properties => {
        Frontend => {
           Action => ['CustomerTicketZoom'],
	 },
 	 Ticket => {
            State => ['[RegExp]^*'],
        },
    },
    Possible => {
        Ticket => {
            State => [$Statuss],
         },
    },
};
As you can see, I don' t know how to retrieve variable $Statuss properly. Which modules I need to include and what the command would look like?
Can anyone advise me the solution, or at least give some example, that is not so complicated as real OTRS modules, because i see that code as a dark forest.
P.S. Yes, I am already reading Perl manuals and Yes, I am reading OTRS developer manuals, but up until now unsuccessfuly
Thank You in advance!
Ar cieņu / Kind regards,
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
Post Reply