Search found 12 matches

by franceswong0129
25 Feb 2019, 05:42
Forum: Developers
Topic: Is it possible to make all dynamic field values of the same ticket same row
Replies: 2
Views: 3371

Re: Is it possible to make all dynamic field values of the same ticket same row

Dear skullz, Thank you so much for your reply! I tried the following code but turns out the excel is empty any ideas on this? Thx!!! my $SQL1 ="SELECT * FROM dynamic_field_value left join dynamic_field on dynamic_field_value.field_id = dynamic_field.id, ticket where create_time >= '$StartDate' ...
by franceswong0129
18 Feb 2019, 05:47
Forum: Developers
Topic: Is it possible to make all dynamic field values of the same ticket same row
Replies: 2
Views: 3371

Is it possible to make all dynamic field values of the same ticket same row

Dear all, By using the Static report, i can generate a template based on SQL. However, i would like to put all values of the dynamic fields from the same ticket to be generated on the same row. For example, [Ticket id 1 ] [Dynamic_Field1_value] [Dynamic_Field2_value] [Ticket id 2 ] [Dynamic_Field1_v...
by franceswong0129
18 Feb 2019, 03:26
Forum: Developers
Topic: [SOLVED]Is that possible to shown child ticketin Report function ?
Replies: 9
Views: 4979

Re: Is that possible to shown child ticketin Report function ?

reneeb wrote: 13 Feb 2019, 11:37

Code: Select all

    while ($DBObject->FetchrowArray()) {
    push @Data, $Row[0];
}
should be

Code: Select all

    while (my @Row = $DBObject->FetchrowArray()) {
        push @Data, [$Row[0]];
    }
Dear reneeb and all others,
Thank you so much for your helping. It works!

Best regards,
Frances Wong
by franceswong0129
13 Feb 2019, 06:01
Forum: Developers
Topic: [SOLVED]Is that possible to shown child ticketin Report function ?
Replies: 9
Views: 4979

Re: Is that possible to shown child ticketin Report function ?

Object handling has changed in OTRS4 sub new { my ( $Type, %Param ) = @_; # allocate new hash for object my $Self = {%Param}; bless( $Self, $Type ); return $Self; } sub Run { my ($Self, %Param) = @_; my $DBObject = $Kernel::OM->Get('Kernel::System::DB'); ... } Dear reneeb, Thank you so much for you...
by franceswong0129
12 Feb 2019, 09:39
Forum: Developers
Topic: [SOLVED]Is that possible to shown child ticketin Report function ?
Replies: 9
Views: 4979

Re: Is that possible to shown child ticketin Report function ?

Thats exactly how it supposed to be.. however under sub Run(), put you SQL instead of calling the Ticket API. check the DB API for prepare statement and fetch https://doc.otrs.com/doc/api/otrs/6.0/Perl/Kernel/System/DB.pm.html#Prepare https://doc.otrs.com/doc/api/otrs/6.0/Perl/Kernel/System/DB.pm.h...
by franceswong0129
12 Feb 2019, 06:01
Forum: Developers
Topic: [SOLVED]Is that possible to shown child ticketin Report function ?
Replies: 9
Views: 4979

Re: Is that possible to shown child ticketin Report function ?

Nope..as the dynamic list data is from TicketGet api which dont include linked ticket value.. unless u know the sql to get the linked item, you can build it by using Static stats instead Dear skullz, Thank you so much for your reply! Is there any example on the implementation of sql in Static stats...
by franceswong0129
11 Feb 2019, 06:23
Forum: Developers
Topic: [SOLVED]Is that possible to shown child ticketin Report function ?
Replies: 9
Views: 4979

Re: Is that possible to shown child ticketin Report function ?

Dear all,

Or is that possible to make the linked-object shown as an attributes in the Stats DynamicList ?

Thank you once again!

Best regards,
Frances Wong
by franceswong0129
08 Feb 2019, 12:03
Forum: Developers
Topic: [SOLVED]Is that possible to shown child ticketin Report function ?
Replies: 9
Views: 4979

[SOLVED]Is that possible to shown child ticketin Report function ?

Dear all,

After splitting the ticket into different child tickets, is that possible to shown the relation of child ticket and parent ticket in the report that provided by otrs ?
Screenshot (3).png
Thank you so much !

Best regards,
Frances Wong
by franceswong0129
04 Feb 2019, 06:41
Forum: Developers
Topic: [SOLVED]How to create process ticket through REST in OTRS 6
Replies: 7
Views: 14017

Re: How to create process ticket through REST in OTRS 6

Thank you so much for all your help !!!
by franceswong0129
28 Jan 2019, 05:41
Forum: Developers
Topic: [SOLVED]How to create process ticket through REST in OTRS 6
Replies: 7
Views: 14017

Re: How to create process ticket through REST in OTRS 6

I tried the following code. DynamicField => { ProcessEntityID => 'Process-xxxxxxxx', ActivityEntityID => 'Activity-xxxxxxxx', (Name =>'EventName', Value => '123'), (Name => 'Organiser', Value=> '123'), (Name =>'EventStartDate', Value=> '2019-01-10'), (Name =>'EventEndDate', Value=> '2019-01-10'), (N...
by franceswong0129
24 Jan 2019, 03:12
Forum: Developers
Topic: [SOLVED]How to create process ticket through REST in OTRS 6
Replies: 7
Views: 14017

Re: How to create process ticket through REST in OTRS 6

Dear reneeb, I have tried to add the following code but it just create a normal ticket, is that wrong ? DynamicField => { ProcessEntityID => 'Process-xxxxxx', ActivityEntityID => 'Activity-xxxxxxx,Activity-xxxxxxx', TransitionEntityID => 'Transition-xxxxxxx,', TransitionActionEntityID => 'Transition...
by franceswong0129
23 Jan 2019, 11:40
Forum: Developers
Topic: [SOLVED]How to create process ticket through REST in OTRS 6
Replies: 7
Views: 14017

[SOLVED]How to create process ticket through REST in OTRS 6

With my own perl script I know how to create a normal ticket with the help of Webservice. However we have added a process with multiple activities and transitions when we create a new ticket. Is that possible to create such a process ticket through REST ?The following is my code to create a normal ...