Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Occasional Contributor

Filter by labels in idea exchange

Hello,

 

I have an idea exchange with around 15 labels.

I can filter by a labels and see all ideas for that specific label / labels.

 

But now I need to see ideas with all labels except one - is there a way to select all labels except one?

 

Thanks!

1 Reply 1
Highlighted
Honored Contributor

@KiranChadha - This is not feasible by default lithium filter by labels page as you only can filter with one label there. However, you still can achieve this using customization. 

 

You will need to create a custom component for idea listing and need to use API V2.

 

The API V2 does not support NOT(!) parameter, however, you can use IN, Below is the API v2 which you can use for fetching the ideas with all the labels expect one.  You need to exclude the label name from IN query for which you do not want ideas to appear.

 

 

SELECT id FROM messages WHERE labels.text in ("label1", "label2", "labels2", "so on....")

 

 

https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collecti...

 

 

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq