Hello,
I would like to force my users to enter the "Time units" cell only in "notes" windows.
I checked under SysConfig > Ticket > ViewNote, but havn't found anything.
Is it possible ?
Best regards,
Jordan
Force time units in "Notes"
Moderator: crythias
-
- Administrator
- Posts: 4246
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Force time units in "Notes"
Yes, with custom development
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 ?
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 ?
-
- Znuny newbie
- Posts: 43
- Joined: 22 Nov 2013, 11:01
- Znuny Version: 5.0.12
- Real Name: Jordan Lamarche
- Company: Smarthys
Re: Force time units in "Notes"
Hello,
Thank you for your fast answer.
As far as I know, I think it should be somewhere inside the .pm file that manages the notes, and it should be under /Kernel/Output/HTML.
Can you confirm this ? I tried to find it but couldn't. Do you, by any chance, know what file I should modify ?
Best regards,
Jordan
Thank you for your fast answer.
As far as I know, I think it should be somewhere inside the .pm file that manages the notes, and it should be under /Kernel/Output/HTML.
Can you confirm this ? I tried to find it but couldn't. Do you, by any chance, know what file I should modify ?
Best regards,
Jordan
-
- Administrator
- Posts: 4246
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Force time units in "Notes"
I would go with an PreApplicationModule and the enable or disable Ticket::Frontend::AccountTime or Ticket::Frontend::NeedAccountedTime depending if the current Action. The mentiond notes screen is the action AgentTicketNote.
Maybe you'll find some example within the search function of the forum.
Maybe you'll find some example within the search function of the forum.
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 ?
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 ?
-
- Znuny newbie
- Posts: 43
- Joined: 22 Nov 2013, 11:01
- Znuny Version: 5.0.12
- Real Name: Jordan Lamarche
- Company: Smarthys
Re: Force time units in "Notes"
I figured that it would be easier to do this :
1. Follow this guide to make every "Time units" mandatory
viewtopic.php?t=17915
2. Hide Time Units from ViewPending and ViewOwner on SysConfig > Ticket.
But unfortunately I didn't find how to do what I want to do on the point 2. There is apparently the possibility to remove the article creation to prevent the "Time units" field from appearing, but that would be a shame not to be able to give more details on the ticket.
Do you know how to do this ?
Best regards,
JL
1. Follow this guide to make every "Time units" mandatory
viewtopic.php?t=17915
2. Hide Time Units from ViewPending and ViewOwner on SysConfig > Ticket.
But unfortunately I didn't find how to do what I want to do on the point 2. There is apparently the possibility to remove the article creation to prevent the "Time units" field from appearing, but that would be a shame not to be able to give more details on the ticket.
Do you know how to do this ?
Best regards,
JL