Dependency field

Moderator: crythias

Locked
dvhelp
Znuny newbie
Posts: 10
Joined: 09 Sep 2014, 11:47
Znuny Version: 3.3.8

Dependency field

Post by dvhelp »

Hi,

I have install open source otrs in my system, Am new to otrs system and am trying to add dependency field for customer panel as like service, Anyone can help me to do that?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Dependency field

Post by jojo »

Read the admin manual (doc.otrs.org)
"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
dvhelp
Znuny newbie
Posts: 10
Joined: 09 Sep 2014, 11:47
Znuny Version: 3.3.8

Re: Dependency field

Post by dvhelp »

Hi Jojo,

I have looked in Admin Manual, there is only dynamic field, but there is no manual for Dependency field,
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: Dependency field

Post by Giulio Soleni »

Hello,
... what do you mean by "dependency fields"?
If you need to configure some kind of dependency between dynamic fields maybe you can take a look to this thread: viewtopic.php?f=62&t=26241

HTH
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Dependency field

Post by RStraub »

You'll either need add-ons, development (as Giulio mentioned) or ACLs (if the dependency is static) to do that.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
dvhelp
Znuny newbie
Posts: 10
Joined: 09 Sep 2014, 11:47
Znuny Version: 3.3.8

Re: Dependency field

Post by dvhelp »

Hi Giulio Soleni,

Ya that one will work for me, but where do i need to modify that code,
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Dependency field

Post by jojo »

use 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
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: Dependency field

Post by Giulio Soleni »

dvhelp wrote:Hi Giulio Soleni,

Ya that one will work for me, but where do i need to modify that code,
You should use it on the template (dtl files) of your interest.
Please, take a look also to this thread: viewtopic.php?f=62&t=26090 (which is linked by my previous reference in turn).
But I agree with RStraub and jojo that if you are able to build up some ACLs for your purposes, instead of editing the code, that would be a better solution.

EDIT: just take care about what crythias said at the end of the cited thread:
crythias wrote:ACL determines what's going to be allowed/displayed in a visible field. It does not determine whether the field displays.
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
dvhelp
Znuny newbie
Posts: 10
Joined: 09 Sep 2014, 11:47
Znuny Version: 3.3.8

Re: Dependency field

Post by dvhelp »

Hi Giulio Soleni,

Ok, ACl shoud be done in coding or through UI which is in admin settings, I tried with Ui which is in admin setting, but that didnt work out for me
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Dependency field

Post by RStraub »

Post the example you created and tell us what dependency you want to achieve.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
dvhelp
Znuny newbie
Posts: 10
Joined: 09 Sep 2014, 11:47
Znuny Version: 3.3.8

Re: Dependency field

Post by dvhelp »

Eg:
Service: Distributor1
Reseller1: HDFC, SBI


Service: Distributor2
Reseller2: ICICI, IOB


Now the customer1 is logging to raise the ticket, if customer1 logsin, service field should display only Distributor1, that i can manage by selecting the service for the customer, and if service (Distributor1) selected, only Reseller1 filed ( Dynamic field which i created) should display, should not display Reseller2 field.

Same for customer2, if customer2 logsin to raise the ticket, only Distributor2 service can see and if Distributor2 service selects only Reseller2 Dynamic filed should display and should not display Reseller2.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Dependency field

Post by crythias »

Same for customer2, if customer2 logsin to raise the ticket, only Distributor2 service can see and if Distributor2 service selects only Reseller2 Dynamic filed should display and should not display Reseller2.
It would be easier and more manageable to use ACL to display appropriate data in one field than to have multiple identical types of fields. What this means is: Reseller field should have all data, filtered by ACL.
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
dvhelp
Znuny newbie
Posts: 10
Joined: 09 Sep 2014, 11:47
Znuny Version: 3.3.8

Re: Dependency field

Post by dvhelp »

Hi,

Oh... Good thats fine, but I tried with ACL (UI, goes to Admin setting and select ACL) i doesnt work out for me, I think I dont know how to configure ACL,

Can you give me some example, that would be a great help for me.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Dependency field

Post by jojo »

"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
Locked