how to change working hours.

Moderator: crythias

Post Reply
cbravo
Znuny advanced
Posts: 113
Joined: 18 Nov 2010, 00:33
Znuny Version: 3.0

how to change working hours.

Post by cbravo »

At the moment, you can only use a clock hour based. Is there any way I could set it up to be half an hour based or something? My company works from 8:30 to 12:30 and from 2:30 to 6:30. With the current working hours it could only be set up to 8 - 12 and 2 - 6 wich is going to be a problem with the sla and the escalation times. Thank you.
OTRS: 3.08
OS: Ubuntu
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: how to change working hours.

Post by jojo »

no, OTRS only allows full hours
"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
cbravo
Znuny advanced
Posts: 113
Joined: 18 Nov 2010, 00:33
Znuny Version: 3.0

Re: how to change working hours.

Post by cbravo »

not even by modifying the code? could you tell me wich files decide if it's 1 hour or half so I can take a look and see if I can change them?
OTRS: 3.08
OS: Ubuntu
Apache2/MySQL 5
rmueller
Znuny newbie
Posts: 10
Joined: 20 Apr 2010, 11:36
Znuny Version: 5.0.x

Re: how to change working hours.

Post by rmueller »

Is there a solution how to workaround this hour/half hour issue?
mutl3y
Znuny newbie
Posts: 2
Joined: 18 May 2012, 18:52
Znuny Version: 3.1.2
Real Name: Mark Heynes

Re: how to change working hours.

Post by mutl3y »

This seems to be rather an annoying short coming with OTRS does anyone know if this is even on the roadmap to be fixed.
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: how to change working hours.

Post by adminrd »

Hi everybody,

I've actually the same question, is someone has some tips to modify the code in order to have half hour in calendar working hours ?

Thanks in advance for your help,

Regards,
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: how to change working hours.

Post by jojo »

actually there is no plan to change it. If you wan't to change it you can submit your code via github pull request
"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
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: how to change working hours.

Post by adminrd »

Sure if I find the way to modify the code I will do it.
I just wonder if someone can give me the sources files involved in order to modify them.

Regards,
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: how to change working hours.

Post by crythias »

This is in Kernel/System/Time.pm

sub WorkingTime

however, it appears that you might be able to modify Kernel/Config/Files/Framework.xml
ConfigItem Name="TimeWorkingHours"
to include <Hour>8.5</Hour>, etc.

Maybe? I haven't tested the entries yet.
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
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: how to change working hours.

Post by adminrd »

Thanks a lot ! I will try that way .

Bye
schaffel
Znuny newbie
Posts: 90
Joined: 20 May 2008, 12:50
Znuny Version: 3.1.X
Real Name: Felix
Company: SyroCon Consulting GmbH
Location: Darmstadt

Re: how to change working hours.

Post by schaffel »

Did you find any solution to your initial problem?

I doubt that an Hour entry like 8,5 does work.
In Kernel/System/Time.pm the sub WorkingTime just iterates through all hours of a day and checks if an an hours value matches that number. It only counts full hours.

We have the same Problem at our company as we have service time like 8:30.
I planned to write a alternative WorkingTime sub for some time but I have not found the time yet to learn all the tricks of creating a new otrs module.
I plan to rather define WorkingTimeRanges than WorkingHours.
production: OTRS 5.0.X | OTRS:ITSM 5.0.X | AWS-RDS MariaDB 10.1.X | CentOS 7

Gibt es im Raum Frankfurt/Darmstadt OTRS/ITSM-Benutzer, die an einem Erfahrungsaustausch interessiert sind? Dann meldet euch um mit Gleichgesinnten über OTRS in der Praxis und den ganzen Rest zu reden.
Post Reply