<div dir="ltr">Hi Kevin,<div><br></div><div>Thanks for the info.</div><div><br></div><div>I've tried a basic test with this and I get the new option (well, I can use it in the advanced tab), but I'll need to experiment a bit more with the extra code for getting the organization.</div>
<div><br></div><div style>I'll post an update once I have it working in our testing environment.</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/4 Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Apr 04, 2013 at 12:21:35PM +0200, Bart wrote:<br>
>    I'm curious to know if it's possible to add the requestor organization to a column.<br>
>    Right now you can show the column __Requestors__ which works, and shows all requestores<br>
>    belonging to a ticket.<br>
>    And another thing that's possible a.t.m. is searching on the requestor organization using this<br>
>    in your ticketsql:<br>
>    Requestor.Organization LIKE 'Bestpractical'<br>
>    Trying to add __Requestor.Organization__ or __RequestorOrganization__ to the columns (using<br>
>    advanced view) doesn't seem to work. It adds the column but no information is shown.<br>
>    Since it's a searchable item, is there a way to display the Requestor(s) Organization in a<br>
>    column?<br>
<br>
</div></div>There isn't a default Format for arbitrary Requestor information.<br>
It would actually be possible to look at the code in<br>
share/html/Elements/RT__Ticket/ColumnMap used by $LinkCallback to<br>
implement code so that __Requestors.{Anything}__ would work, but<br>
that's actually kind of complicated if you're not already familiar<br>
with the level of magic in ColumnMap.<br>
<br>
What you probably want to do is use the Once callback in<br>
share/html/Elements/RT__Ticket/ColumnMap and copy the entry for<br>
Requestors earlier in the file and define<br>
<br>
Requestors.Organization => {<br>
    title     => 'Requestors Organization', # loc<br>
    attribute => 'Requestor.Organization',<br>
    value     => sub { return<br>
                      $_[0]->Requestors-> # more code to loop and get the Organzation<br>
                      }<br>
},<br>
<br>
-kevin<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Bart G.
</div>