Closed state only on working days

Moderator: crythias

Post Reply
iwill
Znuny newbie
Posts: 65
Joined: 10 Feb 2021, 10:47
Znuny Version: 6.0
Real Name: William Craveiro

Closed state only on working days

Post by iwill »

Hi there,

For statistics purposes, i've to prevent tickets which are in "resolved" state (pending auto after 3 days), switch to "closed" state on Saturday and Sunday.
There's any way to achieve that?

This is what i want to prevent:
Image
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Closed state only on working days

Post by root »

Hi,

The responsible configuration for changing state from type pending auto is Daemon::SchedulerCronTaskManager::Task###TicketPendingCheck
This module deals with pending auto and pending reminder states. It is possible to adjust the schedule to not run on weekends, but this would also affect pending reminder states.

If a change of the schedule setting is not possible, custom development helps.

- Roy
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 ?
iwill
Znuny newbie
Posts: 65
Joined: 10 Feb 2021, 10:47
Znuny Version: 6.0
Real Name: William Craveiro

Re: Closed state only on working days

Post by iwill »

root wrote: 08 Apr 2021, 14:49 Hi,

The responsible configuration for changing state from type pending auto is Daemon::SchedulerCronTaskManager::Task###TicketPendingCheck
This module deals with pending auto and pending reminder states. It is possible to adjust the schedule to not run on weekends, but this would also affect pending reminder states.

If a change of the schedule setting is not possible, custom development helps.

- Roy
Thank you for the info, but how can i really adjust that to fit on what that i've mention?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Closed state only on working days

Post by root »

Hi,

Adjust the system configuration I mention. Use https://crontab.guru/#45_*/2_*_*_1-5 as a little help ;-)

- Roy
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 ?
iwill
Znuny newbie
Posts: 65
Joined: 10 Feb 2021, 10:47
Znuny Version: 6.0
Real Name: William Craveiro

Re: Closed state only on working days

Post by iwill »

Precious information that you gave it to me.
Thanks again Roy
Post Reply