[SOLVED] Dashboard Dashlets Columns settings problems

Moderator: crythias

Locked
KepTom
Znuny newbie
Posts: 13
Joined: 11 Mar 2014, 13:13
Znuny Version: 5.0.10
Location: Poland

[SOLVED] Dashboard Dashlets Columns settings problems

Post by KepTom »

Hello
I created new dashlet on dashboard with ticket to lock. Lock_me is a state created by me.
PCSG_Lock_Me_Dashlet.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
 <otrs_config version="1.0" init="Application">
  <ConfigItem Name="DashboardBackend###1000 - Lock Me Ticket" Required="0" Valid="1">
  <Description Lang="en">Parameters for the dashboard backend with tickets who should be locked.</Description>
  <Description Lang="pl">Parametry panelu zgłoszeń, które powinny być przejęte do realizacji. </Description>
  <Group>Ticket</Group>
  <SubGroup>Frontend::Agent::Dashboard</SubGroup>
  <Setting>
   <Hash>
    <Item Key="Module">Kernel::Output::HTML::DashboardTicketGeneric</Item>
    <Item Key="Title">Lock Me - Please !!!</Item>
    <Item Key="Description">Tickets which need to be locked</Item>
    <Item Key="Attributes">States=lock_me;</Item>
    <Item Key="Filter">MyQueues</Item>
    <Item Key="Time">Age</Item>
    <Item Key="Limit">15</Item>
    <Item Key="Permission">rw</Item>
    <Item Key="Block">ContentLarge</Item>
    <Item Key="Group">admin</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>
</otrs_config>
My new dashlet is showing on the dashboard but I can't settings columns or switch view mode e.g. Ticket in My Queues or All Tickets.
Could you help me ?
You do not have the required permissions to view the files attached to this post.
Last edited by KepTom on 12 Mar 2014, 20:05, edited 1 time in total.
OTRS 5.x.x
Ubuntu 12.4 server
MySQL DB
KepTom
Znuny newbie
Posts: 13
Joined: 11 Mar 2014, 13:13
Znuny Version: 5.0.10
Location: Poland

Re: Dashboard Dashlets Columns settings problems

Post by KepTom »

I use OTRS 3.3.4
OTRS 5.x.x
Ubuntu 12.4 server
MySQL DB
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Dashboard Dashlets Columns settings problems

Post by crythias »

Try
<Item Key="Filter">All</Item>
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
KepTom
Znuny newbie
Posts: 13
Joined: 11 Mar 2014, 13:13
Znuny Version: 5.0.10
Location: Poland

Re: Dashboard Dashlets Columns settings problems

Post by KepTom »

I did it, but without effects.
I tried also to change the States, but without effects, too.
I also noticed that pagination it does not work too.
You do not have the required permissions to view the files attached to this post.
OTRS 5.x.x
Ubuntu 12.4 server
MySQL DB
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Dashboard Dashlets Columns settings problems

Post by crythias »

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
 <otrs_config version="1.0" init="Application">
  <ConfigItem Name="DashboardBackend###1000-LockMeTicket" Required="0" Valid="1">
  <Description Translatable="1">Parameters for the dashboard backend with tickets who should be locked.</Description>
  <Group>Ticket</Group>
  <SubGroup>Frontend::Agent::Dashboard</SubGroup>
  <Setting>
   <Hash>
    <Item Key="Module">Kernel::Output::HTML::DashboardTicketGeneric</Item>
    <Item Key="Title">Lock Me - Please !!!</Item>
    <Item Key="Description">Tickets which need to be locked</Item>
    <Item Key="Attributes">States=open;</Item>
    <Item Key="Filter">All</Item>
    <Item Key="Time">Age</Item>
    <Item Key="Limit">15</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="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>
</otrs_config>
This config seems to work for me...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
KepTom
Znuny newbie
Posts: 13
Joined: 11 Mar 2014, 13:13
Znuny Version: 5.0.10
Location: Poland

[SOLVED] Dashboard Dashlets Columns settings problems

Post by KepTom »

Hi.
Problem is solved.
The ConfigItem Name should not contain space character.

Wrong code:
<ConfigItem Name="DashboardBackend###1000 - Lock Me Ticket" Required="0" Valid="1">

Good code:
<ConfigItem Name="DashboardBackend###1000-LockMeTicket" Required="0" Valid="1">

END

<Description Lang="en"> is wrong.
Should be:
<Description Translatable="1"

Thanks crythias.
OTRS 5.x.x
Ubuntu 12.4 server
MySQL DB
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [SOLVED] Dashboard Dashlets Columns settings problems

Post by crythias »

You're welcome. Note that because it's translatable, you should be able to put a custom translation in Language for this. Sometimes, it's easier to translate a keyword instead of a sentence.

So if the code is
translatable ="1">LockMeDefinition</...>
then you'd have custom translations for 'LockMeDefinition' for English as well as all the other languages.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked