Talk:MuteResolve Redux/@comment-84.245.40.210-20130128151401

From Request Tracker Wiki
Revision as of 15:52, 6 April 2016 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hi,

I made this work in rt4 as well using guidelines from http://requesttracker.wikia.com/wiki/CustomStatusesInRt4. I am not using the custom field just added resolvequiet to the lifecycle restart RT and it seems to work like a charm.

This is what I added to RT_SiteConfig.pm

Set(%Lifecycles,
default => {
initial         => [ 'new' ],
active          => [ 'open', 'stalled' ],
inactive        => [ 'resolved', 'resolvequiet', '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)],

  1. from   => [ to list ],
    new      => [qw(open stalled resolved resolvequiet rejected deleted)],
    open     => [qw(new stalled resolved resolvequiet rejected deleted)],
    stalled  => [qw(new open rejected resolved resolvequiet deleted)],
    resolved => [qw(new open stalled rejected deleted)],
    resolvequiet => [qw(new open stalled rejected deleted)],
    rejected => [qw(new open stalled resolved resolvequiet deleted)],
    deleted  => [qw(new open stalled rejected resolved resolvequiet)],
    },
    rights => {
    '* -> deleted'  => 'DeleteTicket',
    '* -> *'        => 'ModifyTicket',
    },
    actions => [
    'new -> open'      => {
    label  => 'Open It', # loc
    update => 'Respond',
    },
    'new -> resolved'  => {
    label  => 'Resolve', # loc
    update => 'Comment',
    },
    'new -> resolvequiet'  => {
    label  => 'ResolveQuiet', # loc
    update => 'Comment',
    },
    'new -> rejected'  => {
    label  => 'Reject', # loc
    update => 'Respond',
    },
    'new -> deleted'   => {
    label  => 'Delete', # loc
    },

'open -> stalled'  => {
label  => 'Stall', # loc
update => 'Comment',
},
'open -> resolved' => {
label  => 'Resolve', # loc
update => 'Comment',
},
'open -> resolvequiet' => {
label  => 'ResolveQuiet', # loc
update => 'Comment',
},
'open -> rejected' => {
label  => 'Reject', # loc
update => 'Respond',
},

'stalled -> open'  => {
label  => 'Open It', # loc
},
'resolved -> open' => {
label  => 'Re-open', # loc
update => 'Comment',
},
'resolvequiet -> open' => {
label  => 'Re-open', # loc
update => 'Comment',
},
'rejected -> open' => {
label  => 'Re-open', # loc
update => 'Comment',
},
'deleted -> open'  => {
label  => 'Undelete', # loc
},
],
},
);


Max.