Lock the priority field
Moderator: crythias
Lock the priority field
Hello,
our priorities are automatically chosen by selecting the Service and the Impact.
Is there a possibility to lock the priority field, so that it isnt't manually changeable?
Best regards
our priorities are automatically chosen by selecting the Service and the Impact.
Is there a possibility to lock the priority field, so that it isnt't manually changeable?
Best regards
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Lock the priority field
First: look for the word "Priority" in SysConfig to see if there's an entry related to the screen you'd like to disable priority.
If not, go to the .dtl and remove the Priority entry for the form on the screens you'd wish it not to appear.
If not, go to the .dtl and remove the Priority entry for the form on the screens you'd wish it not to appear.
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: Lock the priority field
Hello,
I haven't found any option in the SysConfig that helps me by this problem.
In the .dtl I also found no possibility to disable the priority field. I could use the option "disabled" in the Layout.pm, but then all dropdown menus get disabled.
In our company the SLA always gets chosen depending on the priority (for example SLA 1 by priority 1, SLA 2 by priority 2...).
I could hide the priority field, but then the SLA has to be chosen automatically. Is there a possibility to choose the SLA automatically depending on the priority?
I haven't found any option in the SysConfig that helps me by this problem.
In the .dtl I also found no possibility to disable the priority field. I could use the option "disabled" in the Layout.pm, but then all dropdown menus get disabled.
In our company the SLA always gets chosen depending on the priority (for example SLA 1 by priority 1, SLA 2 by priority 2...).
I could hide the priority field, but then the SLA has to be chosen automatically. Is there a possibility to choose the SLA automatically depending on the priority?
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Lock the priority field
By disable I mean remove.
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: Lock the priority field
I haven't found anything for removing the priority.crythias wrote:By disable I mean remove.
Like I said, the SLA always gets chosen depending on the priority (for example SLA 1 by priority 1, SLA 2 by priority 2...).
If anybody can tell me how the SLA can be chosen automatically depending on the priority, it would help me a lot!
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Lock the priority field
I misread the question.Danlam156 wrote:our priorities are automatically chosen by selecting the Service and the Impact.
Is there a possibility to lock the priority field, so that it isnt't manually changeable?
Create an ACL.Danlam156 wrote:the SLA always gets chosen depending on the priority
Determine if you're choosing the priority, and therefore the SLA, or the SLA, and therefore the priority.
Or if you're selecting a Service and Impact and therefore the priority.
In these two quotes, it sounds like Service + Impact = Priority = SLA
http://doc.otrs.org/3.1/en/html/ch18s02.html
Basically, test for Properties, set Possible.
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: Lock the priority field
Thanks for your answer.
I just tried it with the following code...
...but this doesn't work. I still can see all SLAs when priority "1 very high" is selected.
I wrote it over the " End of your own config options" section.
I just tried it with the following code...
Code: Select all
# ticket acl
$Self->{TicketAcl}->{'100-Example-ACL'} = {
# match properties
Properties => {
# current ticket match properties
Priority => {
Name => ['1 very high'],
},
},
# return possible options (white list)
Possible => {
# possible ticket options (white list)
SLA => {
Name => ['1 min. Lösungszeit'],
},
},
};
I wrote it over the " End of your own config options" section.
Re: Lock the priority field
Now, after a few tries an restarts, it almost works with this code:
After I created a ticket with the priority "1 very high", I could only set the SLA to "1 min. Lösungszeit". That's ok.
But while creating the ticket, I can still choose all other SLAs, even after I select the priority "1 very high".
In the OTRS 3.1 manual I saw this text:
Code: Select all
# ticket acl
$Self->{TicketAcl}->{'prio-sla-1'} = {
# match properties
Properties => {
# current ticket match properties
Ticket => {
Priority => ['1 very high'],
}
},
# return possible options (white list)
Possible => {
# possible ticket options (white list)
Ticket => {
SLA => ['1 min. Lösungszeit'],
},
},
};
But while creating the ticket, I can still choose all other SLAs, even after I select the priority "1 very high".
In the OTRS 3.1 manual I saw this text:
Is this feature only available in OTRS 3.1, but not in our version 3.0.4?This is also affected by changes in the form (e.g. if the ticket is the queue "raw" and had a priority "3 normal", but then priority drop-down is selected and the priority is changed now to "5 very high" will also match).
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Lock the priority field
Of course you can :) If you don't restrict them from being shown they will be :)Danlam156 wrote:But while creating the ticket, I can still choose all other SLAs, even after I select the priority "1 very high".
Take a look at the second acl in this post (not that it's specifically related)
viewtopic.php?f=53&t=16398
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