[rt-users] Approvals status open->resolved

Richard Foley Richard.Foley at rfi.net
Fri Feb 13 12:20:45 EST 2009


Hi Chia-liang,

Ok, so now I've got this:

    if ($passed) {
        $top->SetStatus( Status => 'resolved', Force => 1 );
        $self->RunScripAction('Notify Owner', 'Approval Ready for Owner',
                              TicketObj => $top);
    }

and nothing happens...

	?-\

What I have is:

1. The original ticket status changed from "new" to "pending" via a Scrip.

2. The generated approval ticket has an automatic status of "open".

3. When I "Approve" the approval ticket, (which sets itself to "resolved"),

4. I want the original ticket to get a status of "resolved" also, but it does 
nothing currently.

-- 
Richard Foley
Ciao - shorter than aufwiedersehen

http://www.rfi.net/

On Friday 13 February 2009 16:46:19 Chia-liang Kao wrote:
> Richard Foley <Richard.Foley <at> rfi.net> writes:
> 
> > 
> > Hi all,
> > 
> > I'm using RT 3.8.2 to set up approvals, and I'd like the approval process 
to 
> > set the ticket status to "resolved", instead of "open".  I'm setting the 
> > status to "pending" inbetween times, and I'd like to get to "resolved" 
> > without RT ignoring me   To which end I have fudged the code temporarily 
> > like this:
> 
> Do you mean the status of the ticket pending approval?  the code you changed 
is
> for setting the status for the approvals of next level to "open".  If you 
want
> to change the status of the "top" ticket, you want to do that in the "if
> ($passed)" section, and do SetStatus on $top.
> 
> 
> > # /opt/rt3/lib/RT/Approval/Rule/Passed.pm:line 80:
> > 
> >         # $obj->SetStatus( Status => 'open', Force => 1 );
> >         $obj->SetStatus( Status => 'resolved', Force => 1 );
> > 
> > Only the ticket is still set to "open"!
> > 
> > The target ticket is happily marked as "rejected" or "open", but I'm 
unable to 
> > get it to choose "resolved"...  I've also tried this with local/ with no 
more 
> > luck - anyone have a better idea, please?
> > 
> 
> 
> 
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
> 





More information about the rt-users mailing list