[SOLVED]Type <=> Service Relationship

Moderator: crythias

Locked
immaBeans
Znuny newbie
Posts: 37
Joined: 30 May 2013, 03:36
Znuny Version: 3.2.2
Real Name: Vince
Company: Jollibee Worldwide Service

[SOLVED]Type <=> Service Relationship

Post by immaBeans »

Good day to all,

I just wanted to ask If there a possible way to connect Type to Service without using any add-ons?
My goal is when choosing the type, specific services will appear per type. :)

Thanks,
Last edited by immaBeans on 09 Jul 2013, 09:36, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Type <=> Service Relationship

Post by jojo »

ACLs will help
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
immaBeans
Znuny newbie
Posts: 37
Joined: 30 May 2013, 03:36
Znuny Version: 3.2.2
Real Name: Vince
Company: Jollibee Worldwide Service

Re: Type <=> Service Relationship

Post by immaBeans »

How does ACL will help in that scenario? thanks jojo
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Type <=> Service Relationship

Post by jojo »

Create an ACL which match on a Ticket Type and set as Possible Values the Services which are allowed.

Did you read the admin manual chapter on ACLs?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
immaBeans
Znuny newbie
Posts: 37
Joined: 30 May 2013, 03:36
Znuny Version: 3.2.2
Real Name: Vince
Company: Jollibee Worldwide Service

Re: Type <=> Service Relationship

Post by immaBeans »

Sir I read the ACL chapter. But there has no example about the type to service. The manual got queue to service. I'm beginner so I cannot learn that codes in my mind . :/
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Type <=> Service Relationship

Post by crythias »

BTW, Type is probably not a good thing to base service on. You probably want to tie service to Queue. Type is intended to be things like "RFC" or "Incident" or the like.
viewtopic.php?f=60&t=11235
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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Type <=> Service Relationship

Post by jojo »

you should be able to adapt this based on the examples and reference in the admin book.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
immaBeans
Znuny newbie
Posts: 37
Joined: 30 May 2013, 03:36
Znuny Version: 3.2.2
Real Name: Vince
Company: Jollibee Worldwide Service

Re: Type <=> Service Relationship

Post by immaBeans »

Sorry sir jojo, I'm just 18 yrs old and I still studying perl language. So it is hard to me to simply understand the ACL.
Sir is it possible to have a Type <=> Queue <=> Service in one ACL?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Type <=> Service Relationship

Post by jojo »

you'll need more than one ACL for this.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
immaBeans
Znuny newbie
Posts: 37
Joined: 30 May 2013, 03:36
Znuny Version: 3.2.2
Real Name: Vince
Company: Jollibee Worldwide Service

Re: Type <=> Service Relationship

Post by immaBeans »

could you give me example? because I hide the "TO:" field in the customer UI
So how is it.? I want, If I select the type the queue will change (not knowing by the customer bec. the queue is hide to the UI)
then after changing the queue the service will also change.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Type <=> Service Relationship

Post by jojo »

ACLs ae Frontend resctrictions, so you can only use it on fields which are shown
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
immaBeans
Znuny newbie
Posts: 37
Joined: 30 May 2013, 03:36
Znuny Version: 3.2.2
Real Name: Vince
Company: Jollibee Worldwide Service

Re: Type <=> Service Relationship

Post by immaBeans »

Thanks for that information. I allow the customer to view the "TO:" field
Below is the codes I made. This is the 2 ACL's for Type-Queue and Queue-Service. But it still doesnt work.
Basically I have different sub-services but I got the main service "Email::"

Code: Select all

	$Self->{TicketAcl}->{'TYPE-Queue'} = {
                     # match properties
   Properties => { Type => { Name => ['Email'], },
        },

   Possible => { Queue => { Name => ['Service Desk'], },
        },
};


	$Self->{TicketAcl}->{'Queue-Service'} = {
                     # match properties
   Properties => { Queue => { Name => ['Service Desk'], },
	  },

   Possible => {  Service => { Name => ['Email::'], },
         },
};
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Type <=> Service Relationship

Post by tto »

crythias wrote:BTW, Type is probably not a good thing to base service on.
just my 0,02 <place currency unit here>: some services may only be applied to certain ticket types, e.g. "Installation of Software X" to type "Service Request" orf "RfC*". So it depends on your service catalog and there are cases where service-type-restrictions are very useful if not required.

regards, T.
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Type <=> Service Relationship

Post by crythias »

tto wrote:there are cases where service-type-restrictions are very useful if not required.
I don't disagree. My statement is more about where people choose "Type" to replace "Queue" for the purposes employed by "Queue".

With the OP being rather new to OTRS, I'm not convinced (yet) your view applies to the OP. Could be, though.
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
immaBeans
Znuny newbie
Posts: 37
Joined: 30 May 2013, 03:36
Znuny Version: 3.2.2
Real Name: Vince
Company: Jollibee Worldwide Service

Re: Type <=> Service Relationship

Post by immaBeans »

tto wrote:some services may only be applied to certain ticket types
Can you teach me different approach. To connect the type to service.

Sir @crythias please see the codes above, It is still not working. so please help me.

Thanks in advance!
immaBeans
Znuny newbie
Posts: 37
Joined: 30 May 2013, 03:36
Znuny Version: 3.2.2
Real Name: Vince
Company: Jollibee Worldwide Service

Re: Type <=> Service Relationship

Post by immaBeans »

liuyelian wrote:The manual got queue to service. I'm beginner so I cannot learn that codes in my mind . :/
Hi bro. I solve the ACL in this thread. I try to connect TYPE-QUEUE-SERVICE
Below is the format of my ACL :) have fun :D

Code: Select all

$Self->{TicketAcl}->{'Store JEDS to queue&service'} = {
        # match properties
        Properties => {
            # current action match properties
            Frontend => {
                Action => ['AgentTicketPhone', 'AgentTicketEmail', 'CustomerTicketMessage'],
            },
            # current user match properties
            Ticket => {
                Type => ['Stores JEDS',],			
            },				
        },
        Possible => {
            Ticket => {
                Queue => ['JEDS'],
				Service  => ['-Billing',
							 '-Call Center PBX',
							 '-Connectivity Application Request',
							 '-Connectivity Support Isolation',
							 '-Infrastructure',
							 '-Product Database',
							 '-Xavier CRM',
							 '-PMP::PC Hardware/Software',
							 '-PMP::POS Hardware/Software',
								  ],
              },
        },
        PossibleNot => {
            # possible ticket options (black list)
            User => {
                Role => [
                    'admin'
                ],
            },
        },
    };	
Locked