Remove priority completely

Moderator: crythias

Locked
kenmurimi
Znuny newbie
Posts: 87
Joined: 24 May 2010, 10:21
Znuny Version: 2.4.7

Remove priority completely

Post by kenmurimi »

Hi All?
I wanted to use priority but i realized since i wanted different escalation times per priority i decided to have diffrent queues as per my priorities. now i want to completely remove the priority option in my otrs. when i tried sysconfig for customerNewticket and selected customers not to set priority, my customers cant create tickets and they get a "ticketid error" i get the same error when creating phone tickets if i remove the priority field from the dtl files. anyone with any idea on how i can completely remove this priority thing??

any help greatly appreciated..
thanks in advance
OTRS 2.4.7 on SUSE and on MySQL database
OTRS 3.2.10 on CentOS and MySQL database
davidbann
Znuny newbie
Posts: 92
Joined: 21 Jun 2010, 22:51
Znuny Version: 6.5.2
Real Name: David Bann
Location: South Africa

Re: Remove priority completely

Post by davidbann »

I have the same requirement - anyome have any suggestions?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Remove priority completely

Post by crythias »

In Kernel/Output/HTML/Standard/CustomerTicketMessage.dtl
remove

Code: Select all

<!-- dtl:block:Priority -->
                                <tr>
                                    <td class="contentkey">$Text{"Priority"}:</td>
                                    <td class="contentvalue"> $Data{"PriorityStrg"}</td>
                                </tr>
<!-- dtl:block:Priority -->
but if it causes errors, then ...
around line 78 (with all the hiddens)

add a

Code: Select all

<input type="hidden" name="Priority" value="3 normal"/>
admittedly that doesn't *remove* Priority, but it does make it invisible to the user for new tickets. Note that you probably should make sure this is in your own theme.
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
kenmurimi
Znuny newbie
Posts: 87
Joined: 24 May 2010, 10:21
Znuny Version: 2.4.7

Re: Remove priority completely

Post by kenmurimi »

Thanks crythias.

i tried that and it is working but now when printing and on ticketzoom the info is displayed how can i remove that so that it is not displayed.

davidbann were u able to make it invisible?

thanks
OTRS 2.4.7 on SUSE and on MySQL database
OTRS 3.2.10 on CentOS and MySQL database
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Remove priority completely

Post by crythias »

You could find where priority exists in the dtl files. Do you know how to use grep? or are you in windows?

AgentTicketPrint.dtl around line 29:

Code: Select all

              <tr>
                <td class="contentkey">$Text{"Priority"}:</td>
                <td class="contentvalue">$Text{"$Data{"Priority"}"}</td>
              </tr>
AgentTicketZoom.dtl around line 260:

Code: Select all

                <tr valign="top">
                    <td><b>$Text{"Priority"}:</b></td>
                    <td>
                        <font color="red">
                        <div title="$Quote{"$Text{"$Data{"Priority"}"}"}">$Quote{"$Text{"$Data{"Priority"}"}","18"}</div>
                        </font>
                    </td>
                </tr>
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
Barryza
Znuny newbie
Posts: 2
Joined: 01 Mar 2011, 08:22
Znuny Version: 3.0

Re: Remove priority completely

Post by Barryza »

Hi there,

When doing as you suggested below Crythias, the priority field is removed but when I try and submit a new ticket I get this error.

Code: Select all

Error: Need TicketID! Comment: Traceback: ERROR: OTRS-CGI-10 Perl: 5.12.2 OS: MSWin32 Time: Tue Mar 15 09:14:19 2011

Message: Need TicketID!

Traceback (5420): 
   Module: Kernel::System::Ticket::Article::ArticleCreate (v1.273) Line: 118
   Module: Kernel::Modules::CustomerTicketMessage::Run (v1.83) Line: 517
   Module: Kernel::System::Web::InterfaceCustomer::Run (v1.56) Line: 958
   Module: ModPerl::ROOT::ModPerl::Registry::C_3a_Program_20Files_20_28x86_29_OTRS_OTRS_bin_cgi_2dbin_customer_2epl::handler (unknown version) Line: 48
   Module: (eval) (v1.43) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.43) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.43) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31
This is after removing this line from the CustomerTicketMessage, whether I # or delete it is the same result. Do you have any ideas?

Code: Select all

<!-- dtl:block:Priority -->
#               <div>
#                  <label for="PriorityID">$Text{"Priority"}:</label>
#                  $Data{"PriorityStrg"}
#                  <div class="Clear"></div>
              </div>
<!-- dtl:block:Priority -->
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Remove priority completely

Post by crythias »

Did you read the "if you get errors, use the input type=hidden" part?
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
TimCuttill
Znuny newbie
Posts: 2
Joined: 04 Mar 2011, 17:54
Znuny Version: 3.0.4

Re: Remove priority completely

Post by TimCuttill »

I tried to follow your directions and was able to remove the priority box on the customer end, However was getting and error message when creating a new ticket. I did use the line <input type="hidden" name="Priority" value="3 normal"/> but still was unable to get this to work. I am running OTRS version 3.0 maybe this is done differently for this version. please help. Thanks

Also I have attached my original CustomerTicketMessage configuration.
CustomerTicketMessage.txt
You do not have the required permissions to view the files attached to this post.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Remove priority completely

Post by crythias »

What is the error message? What does SysLog say? Did you change the default priority labels?
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
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: Remove priority completely

Post by bayerex »

I've used the above advice to hide priorty from the customer. It has so far worked hiding it from the customer page but not from the print output. The priority is still being included in the pdf. I would really like to hide this from the customer!

Done so far:

-Comment out all references to 'Priority' in: CustomerTicketZoom.dtl, CustomerTicketPrint.dtl, CustomerTicketMessage.dtl
- Added following line to CustomerTicketZoom.dtl:

Code: Select all

<input type="hidden" name="Priority" value="1. minor"/>
Have also run following scripts:
perl bin/otrs.RebuildConfig.pl
perl bin/otrs.DeleteCache.pl

Any ideas?
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
Locked