Subject: | Status-Rights defined in Lifecycles ignored by QuickUpdate plugin |
Date: | Thu, 12 Feb 2015 09:18:03 +0000 |
To: | "'bug-RT-Extension-QuickUpdate [...] rt.cpan.org'" <bug-RT-Extension-QuickUpdate [...] rt.cpan.org> |
From: | Daniel Schwager <Daniel.Schwager [...] dtnet.de> |
Hi,
if you add some rights to the lifecycle (1) and do not grant this new rights,
the user should NOT be able to choose these states.
So, we added new rights 'FinishedTicket', 'Wait4CustTicket' and 'ResolvedQTicket' like described in (1).
In our Queue setup (2) , we do not grant the rights for our new states.
If I comment/reply to a ticket or change the state in "The Basics" (3), our new states are not available. Fine.
If I use the QuickUpdate (4), all states, independent on the rights defined in Lifecycle (1) and grand of rights in the (2),
all states will be shown.
regards
Danny
(1) Lifecycle
/opt/rt4/etc/RT_SiteConfig.pm
Set(%Lifecycles,
default => {
initial => [ 'new' ],
active => [ 'open', 'stalled', 'wait4cust', 'finished', 'resolvedq' ],
inactive => [ 'resolved', 'rejected', 'deleted' ],
defaults => {
on_create => 'new',
on_merge => 'resolved',
approved => 'open',
denied => 'rejected',
reminder_on_open => 'open',
reminder_on_resolve => 'resolved',
},
transitions => {
"" => [qw(new open resolved)],
# from => [ to list ],
new => [qw( open stalled wait4cust finished resolved resolvedq rejected deleted)],
open => [qw(new stalled wait4cust finished resolved resolvedq rejected deleted)],
stalled => [qw(new open wait4cust finished rejected resolvedq resolved deleted)],
wait4cust => [qw(new open stalled finished rejected resolvedq resolved deleted)],
finished => [qw(new open stalled wait4cust rejected resolvedq resolved deleted)],
resolved => [qw(new open stalled wait4cust finished resolvedq rejected deleted)],
resolvedq => [qw(new open stalled wait4cust finished resolved rejected deleted)],
rejected => [qw(new open stalled wait4cust finished resolved resolvedq deleted)],
deleted => [qw(new open stalled wait4cust finished rejected resolvedq resolved )],
},
rights => {
'* -> deleted' => 'DeleteTicket',
'* -> *' => 'ModifyTicket',
'* -> wait4cust' => 'Wait4CustTicket',
'* -> finished' => 'FinishedTicket',
'* -> resolvedq' => 'ResolvedQTicket',
},
(2) Queue setup
[cid:image003.jpg@01D046AD.2EF83790]
(3) Change Status using "Modify ticket"
[cid:image005.jpg@01D046AD.2EF83790]
(4) Change Status using "Quick Update"
[cid:image007.jpg@01D046AD.2EF83790]
Viele Gruesse
Daniel Schwager
-------------------------------------------------------------------
DT Netsolution GmbH - Taläckerstr. 30 - D-70437 Stuttgart
Geschäftsführer: Daniel Schwager, Stefan Hörz - HRB Stuttgart 19870
Tel: +49-711-849910-32, Fax: -932 - Mailto:daniel.schwager@dtnet.de
Message body is not shown because it is too large.
Message body not shown because it is not plain text.