[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-devel
Subject:    Re: [Rt-devel] How to add a custom column like the "Take" one to
From:       Thomas Sibley <trs () bestpractical ! com>
Date:       2011-07-15 15:53:22
Message-ID: 4E206272.3070408 () bestpractical ! com
[Download RAW message or body]

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
_______________________________________________
Come work for us: http://blog.bestpractical.com/2011/06/were-hiring-come-hack-perl-for-best-practical.html
 2011 Training: http://bestpractical.com/services/training.html
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic