Move 'Priority' Position on Phone and Email Tickets

Moderator: crythias

Post Reply
sysAdminLiam
Znuny newbie
Posts: 11
Joined: 01 Oct 2018, 14:58
Znuny Version: Version 6
Real Name: Liam Robson

Move 'Priority' Position on Phone and Email Tickets

Post by sysAdminLiam »

Hi,

Can someone please help.

I need to be able to move the 'Priority' select box from the bottom of the 'Phone Ticket' & 'Email Ticket' to the top of the page, next to 'State' (see badly drawn screenshot). Not sure where I need to be looking to do this, I imagine it's in the Kernel Config files but not 100%. Any help would be great.
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Move 'Priority' Position on Phone and Email Tickets

Post by root »

Hi,

You have to changebthe templates for this. Or by an commercial addon where you can arrange the order of the fields (also role base) with drag an drop.

- 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 ?
sysAdminLiam
Znuny newbie
Posts: 11
Joined: 01 Oct 2018, 14:58
Znuny Version: Version 6
Real Name: Liam Robson

Re: Move 'Priority' Position on Phone and Email Tickets

Post by sysAdminLiam »

Would you happen to know which template this would be inside of OTRS?
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: Move 'Priority' Position on Phone and Email Tickets

Post by reneeb »

Kernel/Output/HTML/Templates/Standard/AgentTicketEmail.tt
Kernel/Output/HTML/Templates/Standard/AgentTicketPhone.tt
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
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Move 'Priority' Position on Phone and Email Tickets

Post by RStraub »

Though keep in mind, if you edit the original file it will be "overwritten" with the next update.

You might rather create a folder ~/Custom/, copy the file into that (keeping the same folder structure) and editing there.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
sysAdminLiam
Znuny newbie
Posts: 11
Joined: 01 Oct 2018, 14:58
Znuny Version: Version 6
Real Name: Liam Robson

Re: Move 'Priority' Position on Phone and Email Tickets

Post by sysAdminLiam »

Though keep in mind, if you edit the original file it will be "overwritten" with the next update.


You mean upgrade the version of OTRS that I'm running?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Move 'Priority' Position on Phone and Email Tickets

Post by RStraub »

Yes, exactly.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
sysAdminLiam
Znuny newbie
Posts: 11
Joined: 01 Oct 2018, 14:58
Znuny Version: Version 6
Real Name: Liam Robson

Re: Move 'Priority' Position on Phone and Email Tickets

Post by sysAdminLiam »

Nice! Thanks for that. After changing the template, do I need to clear the cache or anything with the otrs user??
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Move 'Priority' Position on Phone and Email Tickets

Post by RStraub »

No, if the folder path is correct, and the file-permissions are correct, it should work right away (with the next browser refresh).
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
sysAdminLiam
Znuny newbie
Posts: 11
Joined: 01 Oct 2018, 14:58
Znuny Version: Version 6
Real Name: Liam Robson

Re: Move 'Priority' Position on Phone and Email Tickets

Post by sysAdminLiam »

RStraub wrote: 27 Feb 2019, 15:08 No, if the folder path is correct, and the file-permissions are correct, it should work right away (with the next browser refresh).
Nice, that's all done now, thanks for the help. One last thing, is there a way you can make the priority field mandatory? I'd like the box to have no default and force the user to select a priority before submitting a phone/email ticket?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Move 'Priority' Position on Phone and Email Tickets

Post by RStraub »

Hm, I didn't find an entry in the sysconfig to make it mandatory. This makes it more complicated, as you'd need two modifications:
- one in the template to make it appear mandatory (bold font and the little * star)
- one in the perl file to check whether the parameter is given and print an error if not
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Move 'Priority' Position on Phone and Email Tickets

Post by crythias »

Mandatory fields only need the Mandatory css class. (And sometimes Require_Validate)
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