Custom Dashlet in OTRS 5

Moderator: crythias

Locked
Vince0511
Znuny newbie
Posts: 25
Joined: 21 Oct 2014, 08:53
Znuny Version: 5.0.1
Real Name: Vincent Kessels
Company: RIN
Location: Wijchen, Netherlands
Contact:

Custom Dashlet in OTRS 5

Post by Vince0511 »

Hi All,

I'm using a new OTRS installation on my CentOS.
In previous version I've created an custom dashlet to view one single Queue per dashlet.
Now, with OTRS 5 I cannot get it to function.
It doesnt show anything in my Dashboard.
Can someone help me with my code?

Code: Select all

    <ConfigItem Name="DashboardBackend###0150-TicketsITS" Required="0" Valid="1">
        <Description Translatable="1">Alle tickets in ITS-Queue</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Agent::Dashboard</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::DashboardTicketGeneric</Item>
                <Item Key="Title" Translatable="1">IT-Services</Item>
                <Item Key="Description" Translatable="1">Alle tickets in ITS-Queue</Item>
                <Item Key="Attributes">StateType=open;StateType=new;QueueID=5;</Item>
                <Item Key="Filter">All</Item>
                <Item Key="Time">Age</Item>
                <Item Key="Limit">10</Item>
                <Item Key="Permission">rw</Item>
                <Item Key="Block">ContentLarge</Item>
                <Item Key="Group">GroupID=4;</Item>
                <Item Key="Default">1</Item>
                <Item Key="CacheTTLLocal">0.5</Item>
                <Item Key="DefaultColumns">
                    <Hash>
                        <Item Key="Age">2</Item>
                        <Item Key="Changed">1</Item>
                        <Item Key="CustomerID">1</Item>
                        <Item Key="CustomerName">1</Item>
                        <Item Key="CustomerUserID">1</Item>
                        <Item Key="EscalationResponseTime">1</Item>
                        <Item Key="EscalationSolutionTime">1</Item>
                        <Item Key="EscalationTime">1</Item>
                        <Item Key="EscalationUpdateTime">1</Item>
                        <Item Key="TicketNumber">2</Item>
                        <Item Key="Lock">1</Item>
                        <Item Key="Owner">1</Item>
                        <Item Key="PendingTime">1</Item>
                        <Item Key="Queue">1</Item>
                        <Item Key="Responsible">1</Item>
                        <Item Key="Priority">1</Item>
                        <Item Key="Service">1</Item>
                        <Item Key="State">1</Item>
                        <Item Key="SLA">1</Item>
                        <Item Key="Title">2</Item>
                        <Item Key="Type">1</Item>
                    </Hash>
                </Item>
            </Hash>
        </Setting>
    </ConfigItem>
The Queue is called "ITS" and has ID "5"
The Agent-group is called "IT-Services" and has ID "4"

What am I missing?
Thank you in advance.

Vincent
Using OTRS 5 on CentOS 7. (English / Dutch)
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Custom Dashlet in OTRS 5

Post by reneeb »

Change Kernel::Output::HTML::DashboardTicketGeneric to Kernel::Output::HTML::Dashboard::TicketGeneric. The directory layout changed in OTRS5.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Custom Dashlet in OTRS 5

Post by skullz »

as per https://github.com/OTRS/otrs/blob/rel-5 ... Generic.pm,

Kernel::Output::HTML::Dashboard::TicketGeneric
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
Vince0511
Znuny newbie
Posts: 25
Joined: 21 Oct 2014, 08:53
Znuny Version: 5.0.1
Real Name: Vincent Kessels
Company: RIN
Location: Wijchen, Netherlands
Contact:

Re: Custom Dashlet in OTRS 5

Post by Vince0511 »

Wow, Thanks for the quick fix guys!
:D :D :D :D :D
Using OTRS 5 on CentOS 7. (English / Dutch)
Locked