Eigenes Dashboard Widget erstellen

Hilfe zu OTRS Problemen aller Art
Post Reply
iSteffen95
Znuny newbie
Posts: 26
Joined: 13 Sep 2021, 22:25
Znuny Version: 6.0.38
Real Name: Steffen

Eigenes Dashboard Widget erstellen

Post by iSteffen95 »

Hallo Forum,

ich habe in meinem Test System ein eigenes Widget mir geschrieben (zurecht kopiert) welches mir den Status "In Arbeit" & "Pausiert" als eigenes Widget auf der Startseite anzeiget. Wenn ich das ganze einlese und mit "perl /opt/otrs/bin/otrs.Console.pl Maint::Config::Rebuild" einbinde, sehe ich auch mein Widget.

Problem ist aber das Znuny dann alle X Minuten kurz die Verbindung verliert. Was habe ich den hier falsch gemacht?

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Application">
     <Setting Name="DashboardBackend###9101-Pause" Required="0" Valid="1">
        <Description Translatable="1">Hier können die Tickets Pausiert angezeigt werden.</Description>
        <Navigation>Frontend::Agent::View::Dashboard</Navigation>
        <Value>
              <Hash>
                <Item Key="Module">Kernel::Output::HTML::Dashboard::TicketGeneric</Item>
                <Item Key="Title" Translatable="1">Pause Tickets</Item>
                <Item Key="Description" Translatable="1">Alle Tickets im Status Pause</Item>
                <Item Key="Attributes">StateIDs=12;</Item>
                <Item Key="Filter"></Item>
                <Item Key="Time"></Item>
                <Item Key="Limit">10</Item>
                <Item Key="Permission">rw</Item>
                <Item Key="Block">ContentLarge</Item>
                <Item Key="Group"></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="Created">1</Item>
                        <Item Key="CustomerCompanyName">1</Item>
                        <Item Key="CustomerID">1</Item>
                        <Item Key="CustomerName">2</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">2</Item>
                        <Item Key="Owner">2</Item>
                        <Item Key="PendingTime">1</Item>
                        <Item Key="Queue">1</Item>
                        <Item Key="Responsible">2</Item>
                        <Item Key="Priority">1</Item>
                        <Item Key="Service">1</Item>
                        <Item Key="State">2</Item>
                        <Item Key="SLA">1</Item>
                        <Item Key="Title">2</Item>
                        <Item Key="Type">1</Item>
                    </Hash>
                </Item>
            </Hash>
        </Value>
   </Setting>
   <Setting Name="DashboardBackend###9102-inArbeit" Required="0" Valid="1">
        <Description Translatable="1">Hier können die Tickets in Arbeit angezeigt werden.</Description>
        <Navigation>Frontend::Agent::View::Dashboard</Navigation>
        <Value>
              <Hash>
                <Item Key="Module">Kernel::Output::HTML::Dashboard::TicketGeneric</Item>
                <Item Key="Title" Translatable="1">In Arbeit Tickets</Item>
                <Item Key="Description" Translatable="1">Alle Tickets im Status in Arbeit</Item>
                <Item Key="Attributes">StateIDs=10;StateIDs=11</Item>
                <Item Key="Filter"></Item>
                <Item Key="Time"></Item>
                <Item Key="Limit">10</Item>
                <Item Key="Permission">rw</Item>
                <Item Key="Block">ContentLarge</Item>
                <Item Key="Group"></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="Created">1</Item>
                        <Item Key="CustomerCompanyName">1</Item>
                        <Item Key="CustomerID">1</Item>
                        <Item Key="CustomerName">2</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">2</Item>
                        <Item Key="Owner">2</Item>
                        <Item Key="PendingTime">1</Item>
                        <Item Key="Queue">1</Item>
                        <Item Key="Responsible">2</Item>
                        <Item Key="Priority">1</Item>
                        <Item Key="Service">1</Item>
                        <Item Key="State">2</Item>
                        <Item Key="SLA">1</Item>
                        <Item Key="Title">2</Item>
                        <Item Key="Type">1</Item>
                    </Hash>
                </Item>
            </Hash>
        </Value>
   </Setting>
</otrs_config>
Gruß
Steffen
shawnbeasley
Znuny Employee
Posts: 132
Joined: 13 Sep 2021, 09:38
Znuny Version: Znuny 6.3.x
Real Name: Shawn Beasley
Company: Znuny

Re: Eigenes Dashboard Widget erstellen

Post by shawnbeasley »

Was sagt die Logs?

otrs/znuny
database
Post Reply