[Rt-devel] How to add a custom column like the "Take" one to the "N newest unowned tickets" search
Thomas Sibley
trs at bestpractical.com
Fri Jul 15 11:53:22 EDT 2011
On 07/15/2011 11:36 AM, John Line wrote:
> (1) Is it really true that you cannot add "Take" (or other) links to the
> results of e.g. the "N newest unowned tickets" or other search blocks
> (in the RT home page or dashboards) by using the Edit link and have them
> shown with matching, self-explanatory link descriptions like the
> standard Take links?
>
> If true, is that shortcoming (bug or feature?) likely to be fixed any
> time soon (possibly with code already committed that I could back-port
> to 4.0.1)?
>
> If false (i.e. it can be done), what did I miss - how do you do it?
You want the Advanced page in the query builder. Look at the second
box, which lets you specify advance formats.
> (3) I originally intended to show my "Junk" links only for tickets where
> it was relevant (i.e. ticket not already on the Junk queue, and user had
> privilege to move it there). However, it is unclear whether there is
> anywhere that I could reasonably check ticket details and user
> privileges while also being able to see which column of the results
> table is being generated and apply the tests only when building my
> "Junk" column, AND after all that, influence what (if anything) appears
> in that table cell. Any suggestions?
You can't do conditionals simply with the search format. You could do
it by extending RT's ColumnMap code, but I suspect you don't really want
to do that. Theoretically your saved searches don't include the Junk
queue in the first place, so most of the time the Junk link will be
relevant. Users who don't have permission could get a different saved
search (one visible to the group with Junk rights, the other to the
group without Junk rights).
Thomas
More information about the rt-devel
mailing list