Hide Dynamic Fields by queue

English! place to talk about OTRS development, programming and coding

Moderator: tto

cris12345
OTRS expert
Posts: 88
Joined: 24 Feb 2017, 16:45
OTRS Version?: 5.0.16.01
Real Name: Cristina Corrales
Company: -

Hide Dynamic Fields by queue

Postby cris12345 » 21 Sep 2017, 22:29

Hi,

I was checking others topics like this, about show/hide dynamic fields, but are related to all versions.

Is it a way to hide and show dynamic fields? that is not to modify the code.

I found in KIX4OTRS → Core::DynamicField the possiblity to hide fields:

Ticket::Acl::Module###991_DisabledDynamicFields
Ticket-ACLs to define shown or hidden dynamic fields in forms.

However in the "possible" section in the ACL I don't know how to configure it:

I have it like this:
Possible
Ticket
DyamicField
FieldsName to match

I'm not sure if I'm using this as it supposed to be. For example
I don't know if I have to use ticket or form

Any ideas?

Thanks

I'm using the version: otrs-5.0.14

User avatar
tto
Moderator
Posts: 315
Joined: 09 Jan 2007, 15:24
OTRS Version?: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Hide Dynamic Fields by queue

Postby tto » 22 Sep 2017, 07:56

Hi there,

if you are using KIX4OTRS r8.x then don'T use this. Rather make an ACL with the following structure:

Code: Select all

Properties =>
    ...whatever you want to check as you know it from ACLs...
Possible =>
    Form =>
        "NameOfTheDynamicFieldToSetInvisible" eq '0'
        "NameOfAnotherDynamicFieldToSetInvisible" eq '0'


...that's more understandable than the SysConfig setting mentioned above (which is sort of deprecated).

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.

cris12345
OTRS expert
Posts: 88
Joined: 24 Feb 2017, 16:45
OTRS Version?: 5.0.16.01
Real Name: Cristina Corrales
Company: -

Re: Hide Dynamic Fields by queue

Postby cris12345 » 22 Sep 2017, 15:47

Hi,

Thanks for your answer. Greta, using an ACL is better for me.

However I have a question in order to use the equal to 0, is this syntax correct?

The way as is in the image didn't worked. I'm not sure if is beacause I use "exact macth" to 0 or if under the queue I need write Queue_name instead just queue again

ACLQuestion.png
You do not have the required permissions to view the files attached to this post.

User avatar
tto
Moderator
Posts: 315
Joined: 09 Jan 2007, 15:24
OTRS Version?: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Hide Dynamic Fields by queue

Postby tto » 22 Sep 2017, 15:54

cris12345 wrote:Hi,

Thanks for your answer. Greta, using an ACL is better for me.

However I have a question in order to use the equal to 0, is this syntax correct?

The way as is in the image didn't worked. I'm not sure if is beacause I use "exact macth" to 0 or if under the queue I need write Queue_name instead just queue again

ACLQuestion.png


Your configuration should work if you do not wirte "DynamicField_ResolutionCategory" but "ResolutionCategory" (without the "DynamicField_").

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.

cris12345
OTRS expert
Posts: 88
Joined: 24 Feb 2017, 16:45
OTRS Version?: 5.0.16.01
Real Name: Cristina Corrales
Company: -

Re: Hide Dynamic Fields by queue

Postby cris12345 » 22 Sep 2017, 17:32

I used it also ticket instead Form and I still seeing the dynamic field in Dynamic Fields tab and also Ticket Core Data tab

User avatar
tto
Moderator
Posts: 315
Joined: 09 Jan 2007, 15:24
OTRS Version?: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Hide Dynamic Fields by queue

Postby tto » 28 Sep 2017, 16:15

cris12345 wrote:I used it also ticket instead Form and I still seeing the dynamic field in Dynamic Fields tab and also Ticket Core Data tab


You didn't check this as system user, did you?

Also take care, that there is no other ACL screwing up your "hide DF ACL rule". The following works fine under KIX4OTRS 8.0. As the name tells, the ACL hides these two DF when the ticket is moved into queue "Postmaster". The fields are shown in any other queue. This affects any Actions/masks as there are no other Property-checks.

s001.png


You may also checkout disabling following SysConfig settings as they aren't necessary in OTRS anymore (since PossibleAdd has been added) and are possibly causing some confusion when combining multiple ACLs:
    * Ticket::ACL-PossibleActionSubsumption
    * Ticket::ACL-PossiblePropertiesSubsumption

regards, T.
You do not have the required permissions to view the files attached to this post.
--
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.

User avatar
tto
Moderator
Posts: 315
Joined: 09 Jan 2007, 15:24
OTRS Version?: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Hide Dynamic Fields by queue

Postby tto » 28 Sep 2017, 16:21

cris12345 wrote:I used it also ticket instead Form and I still seeing the dynamic field in Dynamic Fields tab and also Ticket Core Data tab


oh wait now I see what's wrong with your ACL - your property check is incorrect:

IS

Code: Select all

Property => Queue => Queue eq 'Utilities'

SHOULD BE

Code: Select all

Property => Queue => Name eq 'Utilities'
...or...

Code: Select all

Property => Ticket => Queue eq 'Utilities'


more graphically (wher "Postmaster" is your "Utilities"):
s001.png


regards, T.
You do not have the required permissions to view the files attached to this post.
--
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.


Return to “OTRS Developers”

Who is online

Users browsing this forum: No registered users and 3 guests