[rt-users] Prevent status change?
Franzini, Gabriele [Nervianoms]
Gabriele.Franzini at nervianoms.com
Fri Feb 6 09:04:09 EST 2009
Hello,
We are trying the approach of making a local SelectStatus element, so
that it filters which statuses to display in the dropdown box on the
basis of the current one:
[...]
%foreach my $status (@status) {
%next if ($SkipDeleted && $status eq 'deleted');
==> example conditions:
%next if (($Default =~ /new/) && ($status ne 'new'));
%next if (($DefaultLabel =~ /new/) && ($status ne 'open' && $status ne
'stalled' && $status ne 'new'));
%next if (($DefaultLabel =~ /open/) && ($status ne 'stalled' && $status
ne 'resolved' && $status ne 'open'));
%next if (($DefaultLabel =~ /resolved/) && ($status ne 'open' && $status
ne 'archived' && $status ne 'resolved'));
[...]
<option value="<%$status%>"<% (defined $Default && $status eq $Default)
&& qq[ selected="selected"] |n %>><%loc($status)%></option>
% }
</select>
[...]
The current status would not be the only factor to determine possible
next ones, but at least we can prevent obvious errors, like going back
from 'open' to 'new'.
So far it seems to be working,
HTH,
Gabriele Franzini
ICT Applications Manager
Nerviano Medical Sciences SRL
PO Box 11 - Viale Pasteur 10
20014 Nerviano Italy
tel +39 0331581477
fax +39 0331581456
----------------------------------------------------------------------
> Message: 1
> Date: Thu, 29 Jan 2009 18:29:43 +0100
> From: Yves-Alexis Perez <corsac at corsac.net>
> Subject: [rt-users] Prevent status change?
> To: RT-Users at lists.bestpractical.com
> Message-ID: <1233250184.13586.20.camel at miria>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> I would like to ask if it sounds possible to implement some kind of
basic
> workflows in RT (3.8), especially preventing some status changes.
>
> We are currently designing a hotline/helpdesk, and we need some people
not
> to be able to change the status of some tickets. Because the workflow
we
> want to implement say it's not possible to go from open to resolved
> directly, or stuff like that.
>
> Basically, I'd like to be able to configure RT and tell it which
transitions
> are authorized and which ones aren't, but it doesn't seem possible
atm.
[...]
More information about the rt-users
mailing list