Closed Tickets in the Ticket Event Calendar

Moderator: crythias

Post Reply
ChrisMachnicki
Znuny newbie
Posts: 40
Joined: 17 Jul 2013, 11:09
Znuny Version: 3.1.6
Real Name: Chris
Company: The Hut Group

Closed Tickets in the Ticket Event Calendar

Post by ChrisMachnicki »

Hi All,
Not sure if this is even possible but I am using the Ticket Event Calendar on the Dashboard and noticed that tickets are being removed when closed.
Is this by design or a setting somewhere to show all?

Thanks

Chris
OTRS 3.3.8 & KIX4OTRS 6.06 in both test and live. MySQL 5.1.52 on Red Hat Enterprise Linux Server release 6.0
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Closed Tickets in the Ticket Event Calendar

Post by jojo »

this is by design and can not be changed via config
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ChrisMachnicki
Znuny newbie
Posts: 40
Joined: 17 Jul 2013, 11:09
Znuny Version: 3.1.6
Real Name: Chris
Company: The Hut Group

Re: Closed Tickets in the Ticket Event Calendar

Post by ChrisMachnicki »

Ok thanks. We used to have a dirty workaround running a SQL statement to pull events into a custom dashboard but since upgrading thought this would do as a replacement and be less intrusive. I have had a look through the DashboardEventsTicketCalendar.pm file in the HTML folder but can't make head nor tail of how to show all.
OTRS 3.3.8 & KIX4OTRS 6.06 in both test and live. MySQL 5.1.52 on Red Hat Enterprise Linux Server release 6.0
PhyrePhoX
Znuny advanced
Posts: 132
Joined: 05 Dec 2007, 10:56
Znuny Version: 5.0.24 (with ITSM Mo

Re: Closed Tickets in the Ticket Event Calendar

Post by PhyrePhoX »

Digging up an old topic here, but is there a way i can "hack" the event calendar to show past events even when the tickets are closed? OTRS 5 here.
For us it is important to see also in the past, not just the future...
OTRS 5.0.24 (with ITSM Modules) and Znuny 6.4.4 in staging
skullz
Znuny superhero
Posts: 626
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Closed Tickets in the Ticket Event Calendar

Post by skullz »

Based on API: https://github.com/OTRS/otrs/blob/rel-5 ... te.pm#L309

File: https://github.com/OTRS/otrs/blob/7d074 ... ar.pm#L101

try

Code: Select all

# my @ViewableStateIDs = $Kernel::OM->Get('Kernel::System::State')->StateGetStatesByType(
#        Type   => 'Viewable',
#        Result => 'ID',
#    );

my @ViewableStateIDs =  $Kernel::OM->Get('Kernel::System::State')->StateGetStatesByType(
        StateType => ['open', 'new', 'closed successful', 'closed unsuccessful', 'additional state bla bla bla'],
        Result    => 'ID', 
    );
    
Additionally, you may want to upgrade to latest v6 and use the Calendar module instead.
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
Post Reply