ACL x Dynamic fields

Moderator: crythias

Locked
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

ACL x Dynamic fields

Post by pazt »

Hi,

I need create a ACL like this:

If DynamicField_City is Berlim, Frankfurt or Munich => DynamicField_Country is = Germany.

Both DynamicField_City and DynamicField_Country are "Text" fields.

I try this but don't work yet:

Image

this has to work at ticket creation time. While customer is filling the ticket fields.

I'm using OTRS 5.0.8

Thank you
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
wheelshot
Znuny expert
Posts: 188
Joined: 15 Dec 2014, 20:49
Znuny Version: 4.0.24
Location: QC, Canada

Re: ACL x Dynamic fields

Post by wheelshot »

Are there any values already possible in your dynamic field? Cause what your ACL does actually is saying one value is possible but not the others arent.
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

Re: ACL x Dynamic fields

Post by pazt »

wheelshot wrote:Are there any values already possible in your dynamic field? Cause what your ACL does actually is saying one value is possible but not the others arent.
Thanks for you answer wheelshot. Both dynamic fields are free text fields.

I'll let my question more simple with just one city.

If DynamicField_City is Exact match Munich, { DynamicField_Country is = Germany.

Is it possible? Make "free text" dynamic fields work this way?

Thanks.
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
wheelshot
Znuny expert
Posts: 188
Joined: 15 Dec 2014, 20:49
Znuny Version: 4.0.24
Location: QC, Canada

Re: ACL x Dynamic fields

Post by wheelshot »

Oups my bad.

Have you tried to remove "DynamicField_" from the field name? I have several ACLs in our instances that uses Dynamic fields and we're not adding that prefixe.
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

Re: ACL x Dynamic fields

Post by pazt »

When DynamicField option is selected, the prefixe is added automaticaly. There's no way to put it off.
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
wheelshot
Znuny expert
Posts: 188
Joined: 15 Dec 2014, 20:49
Znuny Version: 4.0.24
Location: QC, Canada

Re: ACL x Dynamic fields

Post by wheelshot »

Have you tried to use the Ticket properties with your field name instead?

Properties
--- Ticket
-------City

But I dont know if this field is in the ticket and if the behaviour you want is for when its handled in tickets or not.
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

Re: ACL x Dynamic fields

Post by pazt »

wheelshot wrote:But I dont know if this field is in the ticket and if the behaviour you want is for when its handled in tickets or not.
You right, this fields are Ticket dynamic fields. I would like it working at ticket creation time.

But i think it not work on "Text" dynamic fields. The ACL rules not write on "Text" dynamic fields. Maybe its just for dropdown default otrs fields.
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
wheelshot
Znuny expert
Posts: 188
Joined: 15 Dec 2014, 20:49
Znuny Version: 4.0.24
Location: QC, Canada

Re: ACL x Dynamic fields

Post by wheelshot »

I think youre right that its related to the fact its a text field. You'd have to create a custom form for those automated behaviours. But maybe someone else will pitch in?
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: ACL x Dynamic fields

Post by wurzel »

Hi,

I think the ACL is not working for text or textarea.

You have to use a dropdown.

Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

Re: ACL x Dynamic fields

Post by pazt »

wurzel wrote:Hi,

I think the ACL is not working for text or textarea. You have to use a dropdown.
Is there anyway to do it on a text or text area dynamic fields? I mean, instead ACL?

Thanks
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

Re: ACL x Dynamic fields

Post by pazt »

Anyone?
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: ACL x Dynamic fields

Post by skullz »

In a general way ACLs are used to reduce the possible options for a ticket based on a defined set of rules
"reduce the possible options"

so, its no based on your request.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

Re: ACL x Dynamic fields

Post by pazt »

skullz wrote: "reduce the possible options"

so, its no based on your request.
Thanks skullz. I will try Generic Agent to do that
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
Locked