<br><font size=2 face="sans-serif">Hello Steve,</font>
<br>
<br><font size=2 face="sans-serif">it works, thank you</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Steve Anderson <steve.anderson@bipsolutions.com></b>
</font>
<p><font size=1 face="sans-serif">15.10.2010 12:11</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">An</font></div>
<td><font size=1 face="sans-serif">"Ingo.Itter@ages.de" <Ingo.Itter@ages.de>,
"rt-users@lists.bestpractical.com" <rt-users@lists.bestpractical.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Kopie</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Thema</font></div>
<td><font size=1 face="sans-serif">RE: [rt-users] default owner [AGES:
Viren geprüft !!]</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3 color=#004080 face="Calibri">Easiest way is with a scrip.
The scrip below is one that my team uses. It’s slightly different than
what you’re wanting, as it only acts if the creator is a member of our
team; as the team is only three people, I’ve just hard coded the ids,
but if you remove the return 1 unless ($actor==60 line, it’ll do what
you want. </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri">Steve Anderson</font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri">Scrip:</font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri">On create</font>
<br><font size=3 color=#004080 face="Calibri">User Defined</font>
<br><font size=3 color=#004080 face="Calibri">Global Template: Blank</font>
<br><font size=3 color=#004080 face="Calibri">Transaction Create</font>
<br><font size=3 color=#004080 face="Calibri">Custom Action preparation
code: return 1;</font>
<br><font size=3 color=#004080 face="Calibri">Custom Action Cleanup code:</font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 face="Calibri">  # get actor ID</font>
<br><font size=3 face="Calibri">  my $Actor = $self->TransactionObj->Creator;</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">  # if actor is RT_SystemUser then
get out of here</font>
<br><font size=3 face="Calibri">  return 1 if $Actor == $RT::SystemUser->id;</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">  # don't set owner unless requestor
is a member of the network team</font>
<br><font size=3 face="Calibri">  return 1 unless ($Actor == 60 ||
$Actor == 53802 || $Actor == 105200);</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">  # get out unless ticket owner is
nobody</font>
<br><font size=3 face="Calibri">  return 1 unless $self->TicketObj->Owner
== $RT::Nobody->id;</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">  # ok, try to change owner</font>
<br><font size=3 face="Calibri">  $RT::Logger->info("Auto
assign ticket #". $self->TicketObj->id ." to user #".
$Actor );</font>
<br><font size=3 face="Calibri">  my ($status, $msg) = $self->TicketObj->SetOwner(
$Actor );</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">  unless( $status ) {</font>
<br><font size=3 face="Calibri">    $RT::Logger->error( "Impossible
to assign the ticket to $Actor: $msg" );</font>
<br><font size=3 face="Calibri">    return undef;</font>
<br><font size=3 face="Calibri">  }</font>
<br><font size=3 face="Calibri">  $self->TicketObj->SetStatus('open');</font>
<br><font size=3 face="Calibri">  return 1;</font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 color=#004080 face="Calibri"> </font>
<br><font size=3 face="Tahoma"><b>From:</b> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <b>On Behalf Of </b>Ingo.Itter@ages.de<b><br>
Sent:</b> 15 October 2010 08:06<b><br>
To:</b> rt-users@lists.bestpractical.com<b><br>
Subject:</b> [rt-users] default owner</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Arial"><br>
Hello List,</font><font size=3 face="Times New Roman"> <br>
<br>
</font><font size=3 face="Arial"><br>
how can i set default owner to the value of the creator ?. The default
setting is nobody</font><font size=3 face="Times New Roman"> <br>
<br>
</font><font size=3 face="Arial"><br>
Thank you</font><font size=3 face="Times New Roman"> <br>
_______________________________________________________________________<br>
Geschäftsführer: Rolf Herzog, Thomas Benk<br>
AGES Maut System GmbH & Co. KG<br>
AG Düsseldorf HRA 14045, USt-IdNr.: DE 202525868<br>
AGES International GmbH & Co. KG<br>
AG Düsseldorf HRA 16636, USt-IdNr.: DE 813749831<br>
AGES ETS GmbH<br>
AG Düsseldorf HRB 55580, USt-IdNr.: DE 814789134 </font>
<div align=center>
<br>
<hr></div>
<br><font size=3 face="Times New Roman">This email has been scanned by
Netintelligence</font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href=http://www.netintelligence.com/email><font size=3 color=blue face="Times New Roman"><u>http://www.netintelligence.com/email</u></font></a>
<div align=center>
<br>
<hr></div>
<br><font size=3><br>
</font>
<hr><font size=1 color=#808080 face="Arial">BiP Solutions Limited is a
company registered in Scotland with Company<br>
Number SC086146 and VAT number 383030966 and having its registered<br>
office at Medius, 60 Pacific Quay, Glasgow, G51 1DZ.<br>
<br>
****************************************************************************<br>
This e-mail (and any attachment) is intended only for the attention of<br>
the addressee(s). Its unauthorised use, disclosure, storage or copying<br>
is not permitted. If you are not the intended recipient, please destroy<br>
all copies and inform the sender by return e-mail.<br>
This e-mail (whether you are the sender or the recipient) may be<br>
monitored, recorded and retained by BiP Solutions Ltd.<br>
E-mail monitoring/ blocking software may be used, and e-mail content may<br>
be read at any time.You have a responsibility to ensure laws are not<br>
broken when composing or forwarding e-mails and their contents.<br>
****************************************************************************</font>
<br>
<br><font size="2">_______________________________________________________________________</font><br>
<font size="2">Geschäftsführer: Rolf Herzog, Thomas Benk</font><br>
<font size="2">AGES Maut System GmbH & Co. KG</font><br>
<font size="2">AG Düsseldorf HRA 14045, USt-IdNr.: DE 202525868</font><br>
<font size="2">AGES International GmbH & Co. KG</font><br>
<font size="2">AG Düsseldorf HRA 16636, USt-IdNr.: DE 813749831</font><br>
<font size="2">AGES ETS GmbH</font><br>
<font size="2">AG Düsseldorf HRB 55580, USt-IdNr.: DE 814789134</font>