SLA and Serivce pre-fill

Moderator: crythias

Locked
sldsld
Znuny newbie
Posts: 9
Joined: 16 Jan 2013, 02:14
Znuny Version: 3.1.1
Real Name: sean

SLA and Serivce pre-fill

Post by sldsld »

Does anyone know the code to set these fields automatically, I know they are reliant upon user.
I could use a default user for the time being then this would be reset before ticket creation is selected.

I am trying to reduce the time spent in creating some of our phone created tickets by having fast templates whereby the issue is exactly the same each time except for the location.

e.g I want this simple 4 step process

create new phone ticket button
select user
add location to description
create ticket

As this would greatly reduce the time for our agents when creating some of our tickets.


Any help would be greatly appreciated thankyou.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SLA and Serivce pre-fill

Post by crythias »

Normally, the answer is to use a queue instead.
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
sldsld
Znuny newbie
Posts: 9
Joined: 16 Jan 2013, 02:14
Znuny Version: 3.1.1
Real Name: sean

Re: SLA and Serivce pre-fill

Post by sldsld »

A template ticket that jut jumps straight into a que ? How is this achieved .

Also thanks for your reply as noone replied to my last post regarding a similar issue.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SLA and Serivce pre-fill

Post by crythias »

more simple than that. The queue has all the information that a service has. If you don't use a service, use a queue.
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
sldsld
Znuny newbie
Posts: 9
Joined: 16 Jan 2013, 02:14
Znuny Version: 3.1.1
Real Name: sean

Re: SLA and Serivce pre-fill

Post by sldsld »

Although I am required to use a service and SLA as we need summary statistics at the end of each month or can this also be achieved with queues?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SLA and Serivce pre-fill

Post by crythias »

sldsld wrote:Although I am required to use a service and SLA as we need summary statistics at the end of each month or can this also be achieved with queues?
I don't know what report it is, so I can't answer.

If you need to populate a service and SLA, you can attache a javascript to the bottom of the DTL to fill the form.
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
sldsld
Znuny newbie
Posts: 9
Joined: 16 Jan 2013, 02:14
Znuny Version: 3.1.1
Real Name: sean

Re: SLA and Serivce pre-fill

Post by sldsld »

Ok a java script sounds good although this will need to be different dependent upon each template selected.

So when you say put it at the bottom of the whole dtl won't it have to detect each type of template accordingly along with being compatible with otrs perl, easier said than done do you have an example of this please?.
sldsld
Znuny newbie
Posts: 9
Joined: 16 Jan 2013, 02:14
Znuny Version: 3.1.1
Real Name: sean

Re: SLA and Serivce pre-fill

Post by sldsld »

I have tried this piece of javascript to attempt a default username for now

Code: Select all

<script type="text/javascript">
        function autofill(FromCustomer)
        {
            var cust = document.getElementById("FromCustomer");
	    FromCustomerField.value = FromCustomer;
            var service = document.getElementById("ServiceID");
            var sla = document.getElementById("SLAID");
	    var create = document.getElementById("submitRichtext"); 
            create.click();
        }

	autofill("Default");
        
</script>
But it doesn't seem to work at all? :shock:

Any help on perl compatible javascript or pointing out where I have gone wrong would be greatly appreciated.
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: SLA and Serivce pre-fill

Post by reneeb »

Code: Select all

            var cust = document.getElementById("FromCustomer");
       FromCustomerField.value = FromCustomer;
What is FromCustomerField?

To prefill customer data is more complex. Search the HTML source for "hidden" fields with "Customer" in its name...
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
sldsld
Znuny newbie
Posts: 9
Joined: 16 Jan 2013, 02:14
Znuny Version: 3.1.1
Real Name: sean

Re: SLA and Serivce pre-fill

Post by sldsld »

Ok but what I really want to achieve is a prefill on SLA and service so would I really need to prefill customer in the first place?

Thankyou.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SLA and Serivce pre-fill

Post by crythias »

You can't really do what you want unless the service and SLA is a default Service and SLA (applicable to everyone)

If you change customers, the service and SLA might disappear otherwise.

What you want needs to be handled through a queue and you need to figure out the reporting or you just have to assign a service/sla manually.
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
sldsld
Znuny newbie
Posts: 9
Joined: 16 Jan 2013, 02:14
Znuny Version: 3.1.1
Real Name: sean

Re: SLA and Serivce pre-fill

Post by sldsld »

The queue decides the sla and service which will be the same for all customers but different for each queue.

Can I achieve this methodology?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SLA and Serivce pre-fill

Post by crythias »

sldsld wrote:The queue decides the sla
That much I can say for sure. The "service" is the queue.
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
sldsld
Znuny newbie
Posts: 9
Joined: 16 Jan 2013, 02:14
Znuny Version: 3.1.1
Real Name: sean

Re: SLA and Serivce pre-fill

Post by sldsld »

Ok so I am still at square one when the queue is selected how do I reflect this by autofilling sla and service any jscript examples would be greatly appreciated!
Locked