different queues

Moderator: crythias

Locked
teetones
Znuny newbie
Posts: 9
Joined: 15 Nov 2011, 15:38
Znuny Version: 3.11
Real Name: tee tones

different queues

Post by teetones »

How do i implement this:

when a customer chooses a queue, the values on the Subject & Text fields change to reflect the queue selected?

using otrs 3.3.4 linux
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: different queues

Post by RStraub »

Navigate to the AgentTicketPhone (or Mail) .dtl and find the refresh line of the queue:

Code: Select all

 $('#Dest').bind('change', function (Event)
After the Core.AJAX.FOrmUpdate (but before the end of the script tag) add something along these lines:

Code: Select all

 case "5\|\|Development":
        if ($('#Subject').val()) {}else{
              $('#Template_Development').submit();
        }
    break;
    default:
        break;
    }
Then use the templating mechanism at the end of the file to pre-fill values on subject and text, e.g.

Code: Select all

<form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" id="Template_Development">
    <input type="hidden" name="Action" value="$Env{"Action"}"/>
    <input type="hidden" name="Subaction" value="StoreNew"/>
    <input type="hidden" name="CustomerUser" value="CustomerLogin"/>
    <input type="hidden" name="TypeID" value="7"/>
    <input type="hidden" name="ExpandCustomerName" value="2"/>
    <input type="hidden" name="Subject" value="Prefilled Subject"/>
    <input type="hidden" name="Body" value="Prefilled Text"/>
    <input type="hidden" name="ServiceID" value="3"/>
</form>
Implementation derived from this post (read it, helpful information):
viewtopic.php?f=60&t=8032
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
teetones
Znuny newbie
Posts: 9
Joined: 15 Nov 2011, 15:38
Znuny Version: 3.11
Real Name: tee tones

Re: different queues

Post by teetones »

Thanks for you relpy.would this work on the CustomerTicketMessage.dlt file?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: different queues

Post by crythias »

teetones wrote:would this work...
Try it and ask a different question.
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
teetones
Znuny newbie
Posts: 9
Joined: 15 Nov 2011, 15:38
Znuny Version: 3.11
Real Name: tee tones

Re: different queues

Post by teetones »

Crythias

Tried to do this on the CustomerTicketMessage.dtl but couldnt get it to work. Can you assist me please
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: different queues

Post by crythias »

teetones wrote:Can you assist me please
Certainly that's a different question.
teetones wrote:couldnt get it to work
I would assume something of the sort or you wouldn't ask the question. Ask a better one. Like, what did you try? Did you get any error messages? What do you expect to happen? What did happen?
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
Locked