On Fri, Jan 14, 2011 at 03:49:23PM +1100, Chris Herrmann wrote:
>
> Originally I had another problem which is that I couldn't get a bash
> script to execute an RT cli, pass in variables, and email the results
> as an attachment to a specified address but that's now sorted...
> except that if I cannot get the email address associated with a ticket
> requestor.
>
It's a bug. Quick patch:
diff --git a/share/html/REST/1.0/Forms/ticket/default
b/share/html/REST/1.0/Forms/ticket/default
index 0d403b2..280ab55 100755
--- a/share/html/REST/1.0/Forms/ticket/default
+++ b/share/html/REST/1.0/Forms/ticket/default
@@ -202,7 +202,7 @@ if (!keys(%data)) {
foreach $key (@people) {
next unless (!%$fields || (exists $fields->{lc $key}));
- push @data, [ $key => [ $ticket->$key->MemberEmailAddresses ] ];
+ push @data, [ $key => $ticket->$key->MemberEmailAddressesAsString ];
}
$time = new RT::Date ($session{CurrentUser});
Feel free to open a bug to [email protected] for this :)
and there is no way to get Requestors.Name currently ... patches are welcome ;)