SLA and Serivce pre-fill
Moderator: crythias
SLA and Serivce pre-fill
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.
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.
-
- 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
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
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
Re: SLA and Serivce pre-fill
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.
Also thanks for your reply as noone replied to my last post regarding a similar issue.
-
- 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
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
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
Re: SLA and Serivce pre-fill
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?
-
- 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
I don't know what report it is, so I can't answer.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?
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
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
Re: SLA and Serivce pre-fill
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?.
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?.
Re: SLA and Serivce pre-fill
I have tried this piece of javascript to attempt a default username for now
But it doesn't seem to work at all? 
Any help on perl compatible javascript or pointing out where I have gone wrong would be greatly appreciated.
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>

Any help on perl compatible javascript or pointing out where I have gone wrong would be greatly appreciated.
-
- 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
Code: Select all
var cust = document.getElementById("FromCustomer");
FromCustomerField.value = FromCustomer;
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: SLA and Serivce pre-fill
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.
Thankyou.
-
- 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
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.
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
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
Re: SLA and Serivce pre-fill
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?
Can I achieve this methodology?
-
- 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
That much I can say for sure. The "service" is the queue.sldsld wrote:The queue decides the sla
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
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
Re: SLA and Serivce pre-fill
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!