[Trac] Re: TicketQuery: filter by one keywords, exclude other keyword

2017-02-23 Thread RjOllos


On Tuesday, February 21, 2017 at 2:19:19 AM UTC-8, Peter Suter wrote:
>
> Hi
>
> On Tuesday, February 21, 2017 at 8:40:30 AM UTC+1, Florian Schricker wrote:
>>
>>
>> I do not know whether this is possible at all but I dare asking: Is it 
>> possible to setup a TicketQuery macro to include tickets with a specific 
>> keyword (keywords~=word1) but excluding all tickets which contain another 
>> specific keywords (keywords!=word2)?
>>
>
> Yes, it is possible and easy, but not at all obvious from the 
> documentation. The trick (mentioned in 
> https://trac.edgewall.org/ticket/10152 only?) is to use a - (dash, minus 
> sign) for the excluded word2 in the same keywords clause:
> [[TicketQuery(keywords~=word1 -word2)]]
>
> Regards,
> Peter
>

I added some documentation. Feel free to improve on my attempt.
https://trac.edgewall.org/ticket/10152#comment:19 

- Ryan

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Re: TicketQuery: filter by one keywords, exclude other keyword

2017-02-21 Thread Peter Suter
Hi

On Tuesday, February 21, 2017 at 8:40:30 AM UTC+1, Florian Schricker wrote:
>
>
> I do not know whether this is possible at all but I dare asking: Is it 
> possible to setup a TicketQuery macro to include tickets with a specific 
> keyword (keywords~=word1) but excluding all tickets which contain another 
> specific keywords (keywords!=word2)?
>

Yes, it is possible and easy, but not at all obvious from the 
documentation. The trick (mentioned in 
https://trac.edgewall.org/ticket/10152 only?) is to use a - (dash, minus 
sign) for the excluded word2 in the same keywords clause:
[[TicketQuery(keywords~=word1 -word2)]]

Regards,
Peter

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.