[rt-users] cannot display requestor or requestors attributes in rt CLI when specifying fields
Emmanuel Lacour
elacour at easter-eggs.com
Mon Jan 24 09:56:44 EST 2011
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 rt-bugs at bestpractical.com for this :)
and there is no way to get Requestors.Name currently ... patches are welcome ;)
More information about the rt-users
mailing list