-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 24.07.2012 16:48, wrote Paul Boos:
> I have a field called Keywords (via the keywords plugin); this contains
> a list of keywords (duh!).

Everyone has a 'keywords' field in tickets, because it's a standard one,
unrelated to any Trac plugin. You speak about that, don't you?

> I'm setting up a specific report using TracQuery inside a wiki page.
> When I use keywords=accreditation (the keyword of interest), I get no
> returns.

TracWiki provides a good, embedded documentation for you. As you see
there [1], TracQuery is a synonym for ticket query. There is the
(custom) query module as well as the wiki macro TicketQuery. I guess,
this is what you're speaking about here.

 By writing
 [[TicketQuery(keywords~=kw1|kw2|kw3)]]
you call a specific query over (all) tickets, that contain (any of) the
specified keywords. To match keywords within possibly multiple keywords
for a ticket you need "contains": "~=" instead of "is equal to": "=".

> If I swap this out with keywords~=accreditation, when format=count I get
> the proper count back, but if I leave that out to actually get a list of
> tickets, I have no results.

Leaving out only the 'format' argument you should get the list instead
of the row count.

> What am I missing? Quotes? Double quotes? Something else?

Take a look at the query syntax, please. Quotes are only needed to mask
white-space. Dunno, what could go wrong there for you. Maybe you missed
to tell us something else that is relevant for this issue.

Steffen Hoffmann


[1] http://trac.edgewall.org/wiki/TracQuery
[2] http://trac.edgewall.org/wiki/TracQuery#QueryLanguage
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAO3pIACgkQ31DJeiZFuHfxcgCglihJRZCfoV46268ePrWq6phJ
MSgAoOATjh7D5PA1nScLZx0hs20YMoJS
=M3Eb
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to