New ticket Queue overview dashlet in dashboard

Moderator: crythias

Post Reply
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

New ticket Queue overview dashlet in dashboard

Post by gecelann »

Hi!

Good day!
I would like to ask if it is possible to add new ticket queue overview in dashboard?
I try editing it in ticket.xml thru copy and paste then change the configitem name and title, but it did not work.
Can it possibly have a new queue overview?

Because in our otrs we have different queue in a different state.
for example.

state1, state2, state3 = queue 1
state4, state5, state6 = queue 2

I would like to have another queue overview for queue 2. Is it possible? :(
Please help. Thank you so much.
root
Administrator
Posts: 4011
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: New ticket Queue overview dashlet in dashboard

Post by root »

Yes, check the file Kernel/Config/Files/Ticket.xml for the Dashboard configuration, copy it to an own XML Config ( don't forget the initial and closing tags ;-). Rebuild Config. Done.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: New ticket Queue overview dashlet in dashboard

Post by gecelann »

root wrote:Yes, check the file Kernel/Config/Files/Ticket.xml for the Dashboard configuration, copy it to an own XML Config ( don't forget the initial and closing tags ;-). Rebuild Config. Done.
Hi root,

What do you mean by copy it to an own xml config?
new file of ticket.xml? or just new configitem?

If by copying it to be a new configitem, I already did it but it did not work.
This is my code inside ticket.xml

Code: Select all

     <ConfigItem Name="DashboardBackend###0270-TicketQueueOverview" Required="0" Valid="1">
        <Description Translatable="1">Parameters for the dashboard backend of the queue overview widget of the agent interface. "Group" is used to restrict the access to the plugin (e. g. Group: admin;group1;group2;). "QueuePermissionGroup" is not mandatory, queues are only listed if they belong to this permission group if you enable it. "States" is a list of states, the key is the sort order of the state in the widget. "Default" determines if the plugin is enabled by default or if the user needs to enable it manually. "CacheTTLLocal" is the cache time in minutes for the plugin.</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Agent::Dashboard</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::Dashboard::TicketQueueOverview</Item>
                <Item Key="Title" Translatable="1">Ticket Queue Overview</Item>
                <Item Key="Description" Translatable="1">Provides a matrix overview of the tickets per state per queue.</Item>
                <Item Key="Permission">rw</Item>
                <Item Key="QueuePermissionGroup">users</Item>
                <Item Key="Block">ContentLarge</Item>
                <Item Key="Group"></Item>
                <Item Key="Default">1</Item>
                <Item Key="Sort">SortBy=Age;OrderBy=Up</Item>
                <Item Key="CacheTTLLocal">0.5</Item>
                <Item Key="States">
                    <Hash>
                        <Item Key="1">new</Item>
                        <Item Key="4">open</Item>
                        <Item Key="6">pending reminder</Item>
                    </Hash>
                </Item>
            </Hash>
        </Setting>
    </ConfigItem>

<!---Customized Start -->
    <ConfigItem Name="DashboardBackend###0270-OfficeSupport" Required="0" Valid="1">
        <Description Translatable="1">Parameters for the dashboard backend of the queue overview widget of the agent interface. "Group" is used to restrict the access to the plugin (e. g. Group: admin;group1;group2;). "QueuePermissionGroup" is not mandatory, queues are only listed if they belong to this permission group if you enable it. "States" is a list of states, the key is the sort order of the state in the widget. "Default" determines if the plugin is enabled by default or if the user needs to enable it manually. "CacheTTLLocal" is the cache time in minutes for the plugin.</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Agent::Dashboard</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::Dashboard::TicketQueueOverview</Item>
                <Item Key="Title" Translatable="1">Ticket Queue Overview</Item>
                <Item Key="Description" Translatable="1">Provides a matrix overview of the tickets per state per queue.</Item>
                <Item Key="Permission">rw</Item>
                <Item Key="QueuePermissionGroup">users</Item>
                <Item Key="Block">ContentLarge</Item>
                <Item Key="Group"></Item>
                <Item Key="Default">1</Item>
                <Item Key="Sort">SortBy=Age;OrderBy=Up</Item>
                <Item Key="CacheTTLLocal">0.5</Item>
                <Item Key="States">
                    <Hash>
                        <Item Key="1">new</Item>
                        <Item Key="4">open</Item>
                        <Item Key="6">pending reminder</Item>
                    </Hash>
                </Item>
            </Hash>
        </Setting>
    </ConfigItem>
<!---Customized End -->
Thank you! :)
root
Administrator
Posts: 4011
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: New ticket Queue overview dashlet in dashboard

Post by root »

Name you file like WhatEverYouLike.xml and dont' forget the otrs_config tag
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: New ticket Queue overview dashlet in dashboard

Post by gecelann »

root wrote:Name you file like WhatEverYouLike.xml and dont' forget the otrs_config tag
Hi root!
Where will I call WhatEverYouLike.xml in the files? in order to show it in sysconfig? or
it will automatically call when i rebuild my config?
root
Administrator
Posts: 4011
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: New ticket Queue overview dashlet in dashboard

Post by root »

root wrote:Rebuild Config. Done.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply