Help setting a minimum of time units

Moderator: crythias

Post Reply
Wanny
Znuny newbie
Posts: 3
Joined: 08 Jan 2018, 17:50
Znuny Version: OTRS 5

Help setting a minimum of time units

Post by Wanny »

Long story short, we have set the option that people have to enter a value in the "Time Units" field when posting a note or email in a ticket.
But a lot of users enter 0 there and it affects the montly reports when doing a SQL query since those entries are ignored.

Is there a way to set a minimum value to enter in that field?
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Help setting a minimum of time units

Post by wurzel »

Hi,

what do you expect to achieve with this? Anyone who enter 0 here, will later set an higher value (for example 30)

Now what? Is the number correct? No!



So the only right answer is: tell your agents to do it right.

Regards
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Wanny
Znuny newbie
Posts: 3
Joined: 08 Jan 2018, 17:50
Znuny Version: OTRS 5

Re: Help setting a minimum of time units

Post by Wanny »

wurzel wrote:Hi,

what do you expect to achieve with this? Anyone who enter 0 here, will later set an higher value (for example 30)

Now what? Is the number correct? No!



So the only right answer is: tell your agents to do it right.

Regards
Flo
That's the problem. People enter 0 in the note/email and don't enter a higher value afterwards.
Hence my question if there's a way in OTRS to enforce entering a value higher than X (because of course we have asked people to enter an actual value)
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Help setting a minimum of time units

Post by reneeb »

That's not possible without development. If it's ok to have only a JavaScript test, you could write a custom JS file to inject some JavaScript code that checks on form submit if there's a value greater than 0.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Help setting a minimum of time units

Post by crythias »

Just a heads up that negative values are also allowed, especially important to adjust invalid time entries.

Note that if you're always requiring positive entries of time units for every required time units entry, you may have people inflating tickets way beyond the actual time performed in the ticket. As well, they'd have to do math(s) to calculate time.

For example: Change owner? Time Units Required? Bill the customer for that?
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
Post Reply