Re: Fwd: Using getting stuck when choosing new Custom Lifecycle

"Dippery, Kyle" <[email protected]> Tue, 14 Feb 2017 14:14:54 +0000
Newsgroups gmane.comp.bug-tracking.request-tracker.user
Message-ID <CY4PR03MB29519A9D8FF512811C4D223B91580@CY4PR03MB2951.namprd03.prod.outlook.com>
In my own custom lifecycle, I have one hyphenated status ("in-use").  I don=
't remember why (perhaps this is the reason), but I have it in quotation ma=
rks as a key in our transitions array:

 transitions =3D> {
           ...
           "in-use"  =3D> [qw(allocated recycled stolen lost deleted surplu=
ssed destroyed-for-parts scattered-across-the-desert)],
            }

Your hyphenated ones aren't quoted in your array.  Perhaps that's the stick=
ing point?  Perl might be trying to do math with the "-" before assigning t=
o it.

--
Kyle Dippery
Engineering Computing Services
219 RMB
859-257-1346

________________________________________
From: rt-users <[email protected]> on behalf of Ben =
Pintilie <[email protected]>
Sent: Tuesday, February 14, 2017 8:29 AM
To: [email protected]
Subject: [rt-users] Fwd: Using getting stuck when choosing new Custom   Lif=
ecycle

Hi All,

Im having a strange issue, I know I have missed a step, but cant see where.=
  I have added in three new statuses, (aw-int aw-ext aw-qa) each new status=
 meaning "awaiting-xxx"  I have carried out the update to RT_SiteConfig.pm =
as usual.  I have restarted RT and I can see the new statuses.  If any user=
 or admin selects a status, it saves and reports correctly.  The issue is t=
hat we can not then change the status from any of the new statuses to an or=
iginal status.  i.e. from aw-ext TO stalled.

The new statuses have been added like this:


Set(%Lifecycles,
     default =3D> {
        initial           =3D> [ 'new' ],
        active          =3D> [ 'open', 'aw-ext', 'aw-int', 'aw-qa', 'stalle=
d' ],


<- AND HERE ->



 # from   =3D> [ to list ],
            new      =3D> [qw(open aw-ext aw-int aw-qa stalled resolved rej=
ected deleted)],
            open     =3D> [qw(new aw-ext aw-int aw-qa stalled resolved reje=
cted deleted)],
            stalled  =3D> [qw(new open aw-ext aw-int aw-qa rejected resolve=
d deleted)],
            resolved =3D> [qw(new open aw-ext aw-int aw-qa stalled rejected=
 deleted)],
            rejected =3D> [qw(new open aw-ext aw-int aw-qa stalled resolved=
 deleted)],
            deleted  =3D> [qw(new open aw-ext aw-int aw-qa stalled rejected=
 resolved)],
            aw-ext   =3D> [qw(new open aw-int aw-qa stalled rejected resolv=
ed)],
            aw-int   =3D> [qw(new open aw-ext aw-qa stalled rejected resolv=
ed)],
            aw-qa    =3D> [qw(new open aw-ext aw-int stalled rejected resol=
ved)],



<-AND HERE->



 actions =3D> [
            'new -> open'      =3D> { label =3D> 'Open It',  update =3D> 'R=
espond' },
            'new -> resolved'  =3D> { label =3D> 'Resolve',  update =3D> 'C=
omment' },
            'new -> rejected'  =3D> { label =3D> 'Reject',   update =3D> 'R=
espond' },
            'new -> deleted'   =3D> { label =3D> 'Delete'                  =
      },

            'open -> stalled'  =3D> { label =3D> 'Stall',    update =3D> 'C=
omment' },
            'open -> resolved' =3D> { label =3D> 'Resolve',  update =3D> 'C=
omment' },
            'open -> rejected' =3D> { label =3D> 'Reject',   update =3D> 'R=
espond' },
'open -> aw-ext'   =3D> { label =3D> 'AW-ext',   update =3D> 'Comment' },
            'open -> aw-int'   =3D> { label =3D> 'AW-int',   update =3D> 'C=
omment' },
            'open -> aw-qa'    =3D> { label =3D> 'AW-qa',    update =3D> 'C=
omment' },

            'aw-ext -> stalled'  =3D> { label =3D> 'Stall',    update =3D> =
'Comment' },
            'aw-ext -> resolved' =3D> { label =3D> 'Resolve',  update =3D> =
'Comment' },
            'aw-ext -> rejected' =3D> { label =3D> 'Reject',   update =3D> =
'Respond' },
            'aw-ext -> aw-int'   =3D> { label =3D> 'AW-int',   update =3D> =
'Comment' },
            'aw-ext -> aw-qa'    =3D> { label =3D> 'AW-qa',    update =3D> =
'Comment' },

            'aw-int -> stalled'  =3D> { label =3D> 'Stall',    update =3D> =
'Comment' },
            'aw-int -> resolved' =3D> { label =3D> 'Resolve',  update =3D> =
'Comment' },
            'aw-int -> rejected' =3D> { label =3D> 'Reject',   update =3D> =
'Respond' },
'aw-int -> aw-ext'   =3D> { label =3D> 'AW-ext',   update =3D> 'Comment' },
            'aw-int -> aw-qa'    =3D> { label =3D> 'AW-qa',    update =3D> =
'Comment' },

            'aw-qa -> stalled'  =3D> { label =3D> 'Stall',    update =3D> '=
Comment' },
            'aw-qa -> resolved' =3D> { label =3D> 'Resolve',  update =3D> '=
Comment' },
            'aw-qa -> rejected' =3D> { label =3D> 'Reject',   update =3D> '=
Respond' },
'aw-qa -> aw-ext'   =3D> { label =3D> 'AW-ext',   update =3D> 'Comment' },
            'aw-qa -> aw-int'   =3D> { label =3D> 'AW-int',   update =3D> '=
Comment' },

            'stalled -> open'  =3D> { label =3D> 'Open It'                 =
      },
            'resolved -> open' =3D> { label =3D> 'Re-open',  update =3D> 'C=
omment' },
            'rejected -> open' =3D> { label =3D> 'Re-open',  update =3D> 'C=
omment' },
            'deleted -> open'  =3D> { label =3D> 'Undelete'                =
      },



I have *NOT* Changed the approvals lifecycle

Can anyone point me to what I have missed, I know its human error, I just c=
ant see where!

Thanks
Ben


T: 01253 394911

W: blackpoolsixth.ac.uk<http://blackpoolsixth.ac.uk/>

Blackpool Sixth, Blackpool Old Road, Blackpool, FY3 7LR

This email and any attachments are confidential and are intended solely for=
 the use of the individual to whom it is addressed. If you are not the inte=
nded recipient of this email and its attachments, you must take no action b=
ased upon them, nor must you copy or show them to anyone. Please contact th=
e sender if you believe you have received this email in error.  Emails are =
not secure and cannot be guaranteed to be free of errors or viruses.  It is=
 your responsibility to scan emails and attachments for viruses before open=
ing them.


Any views or opinions expressed are solely those of the author and do not n=
ecessarily represent those of The Blackpool Sixth Form College.