<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
So, I have this script that put ticket status from 'new' to 'open'
when all dependend on by are resolt.<br>
With normal tickets WORKS, but with approbal tickets doesn't work...
why ?<br>
<br>
The script is:<br>
<br>
return 1 if ($self->TransactionObj->NewValue !~
/^(?:resolved|deleted|rejected)$/);<br>
my $DepOnBy = $self->TicketObj->DependedOnBy;<br>
while( my $l = $DepOnBy->Next ) {<br>
next unless( $l->BaseURI->IsLocal );<br>
next unless( $l->BaseObj->Status =~
/^(?:new|open|stalled)$/ );<br>
<br>
# here you can add any action<br>
# see also example below<br>
$l->BaseObj->SetStatus('resolved');<br>
}<br>
$DepOnBy = undef;<br>
return 1;<br>
<br>
<h1><br>
</h1>
Thanks for you time<br>
<br>
On 20/12/11 16:46, Daniel Garcia Mejia wrote:
<blockquote cite="mid:4EF0ADD2.8090103@cesca.cat" type="cite">So, it
is possible to have a duplicate copy of queue '__Approval' but
with another name?
<br>
<br>
<br>
<br>
On 20/12/11 15:52, Daniel Garcia Mejia wrote:
<br>
<blockquote type="cite">I have a question with creating more
approbal queues, other than the default that comes
('___Approval')
<br>
<br>
I create a new queue with type 'approval'.
<br>
<br>
My problem is that when creating a ticket that creates a ticket
approval in queue '__Aprobbal' when it is approved, the ticket
automatically switches to 'open'.
<br>
In contrast, in another queue 'approbal' that I created, the
ticket does not go 'open' IS ALWAYSas 'new'.
<br>
<br>
Why is this?
<br>
<br>
Thankyou!!
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
.......................................................................
__
/ / 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 - <a class="moz-txt-link-abbreviated" href="mailto:dgarcia@cesca.cat">dgarcia@cesca.cat</a>
.......................................................................
</pre>
</body>
</html>