[rt-users] Custom Lifecycles tickets

Daniel Garcia Mejia dgarcia at cesca.cat
Thu Dec 22 11:00:53 EST 2011


Hi,

I have one question about Lifecycle:

I defined one new stat of ticket 'waiting' Lifecycle in RT_SiteConfig.pm.
It is possible to assign a custom Lifecycle to specific queue on my 
system? How?





My custom Lifecycle is:

Set(%Lifecycles,
     custom => {
         initial         => [ 'new' ],
         inactive        => [ 'waiting', 'resolved', 'rejected', 
'deleted' ],

         defaults => {
             on_create => 'new',
             on_merge  => 'resolved',
             approved  => 'open',
             denied    => 'rejected',
         },

         transitions => {
             ''       => [qw(new open resolved)],

             # from   => [ to list ],
             new      => [qw(new open stalled resolved rejected deleted)],
             open     => [qw(new stalled resolved rejected deleted 
waiting )],
             stalled  => [qw(new open rejected resolved deleted)],
             resolved => [qw(new open stalled rejected deleted)],
             rejected => [qw(new open stalled resolved deleted)],
             deleted  => [qw(new)],
          waiting  => [qw(open resolved)]
         },
         rights => {
             '* -> deleted'  => 'DeleteTicket',
         '* -> waiting'  => 'WaitTicket',
             '* -> *'        => 'ModifyTicket',
         },
         actions => [
             'new -> open'      => {
                 label  => 'Open It', # loc
                 update => 'Respond',
             },
             'new -> new'      => {
                 label  => 'Respond but leave New', # loc
                 update => 'Respond',
             },
             'new -> resolved'  => {
                 label  => 'Resolve', # loc
                 update => 'Respond',
             },
             'new -> rejected'  => {
                 label  => 'Reject', # loc
                 update => 'Respond',
             },
             'new -> deleted'   => {
                 label  => 'Delete', # loc
             },

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

             'stalled -> open'  => {
                 label  => 'Open It', # loc
             },
             'resolved -> open' => {
                 label  => 'Re-open', # loc
                 update => 'Comment',
             },
             'rejected -> open' => {
                 label  => 'Re-open', # loc
                 update => 'Comment',
             },
             'deleted -> open'  => {
                 label  => 'Undelete', # loc
             },
             'open -> resolved' => {
                 label  => 'Resolve', # loc
                 update => 'Respond',
             },
         'open -> resolved' => {
         label => 'Quick Resolve',
          }
         ],
     },
     __maps__ => {
         'custom -> default' => {
         new => 'new',
         open => 'open',
         stalled => 'stalled',
         resolved => 'resolved',
         rejected => 'rejected',
         deleted => 'deleted',
         waiting => 'stalled',
         },
         'default -> custom' => {
         new => 'new',
         open => 'open',
         stalled => 'waiting',
         resolved => 'resolved',
         rejected => 'rejected',
         deleted => 'deleted',
         },
     },
);

-- 
.......................................................................
         __
        / /       Daniel García Mejía
  C E / S / C A   Portals i Repositoris
      /_/         Centre de Serveis Científics i Acadèmics de Catalunya

  Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
  T. (NULL) - F.  93 205 6979 - dgarcia at cesca.cat
.......................................................................




More information about the rt-users mailing list