On Saturday, July 20, 2013 1:36:00 PM UTC-7, hasienda wrote:
>
> -----BEGIN PGP SIGNED MESSAGE----- 
> Hash: SHA1 
>
> On 20.07.2013 02:29, Dan Harlacher wrote: 
> > Hello, 
> > 
> > I can figure out how to get the value for a field for a given ticket. 
> > I'm creating a manual report on a wiki page and need to put this value 
> > into it. Here is an example. I have a field in every ticket called 
> > test_depth. I want to get the value in this field for ticket 9339. Is 
> > there a way to do that and get just the value back. 
> > 
> > I know I can use TicketQuery to create a table where I can control the 
> > columns but in this case all I need is the value so I can control the 
> > formatting. I'm wondering if there is something like the count option to 
> > TicketQuery where I can get just the values for a given field. 
>
> I see your point, but No, currently there's no such option. 
>

You could write a small plugin to do the job. The SQLScalar macro of 
WikiTableMacro will probably work for you, just be cautious of installing 
it since there are no permission checks enforced before providing access to 
the database. The plugin needs to be extended to enforce a permission check 
and to work with a read-only database connection.

http://trac-hacks.org/wiki/WikiTableMacro

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to