External reference field / filtering out multiple status options
Hi All,
I'm trying to filter out Complete and Cancelled projects from the list of projects showing up in an External Lookup type custom field.
(I use External Lookup, instead Typeahaed, because I want to use another field's value as a filter.)
Here's how the Base API URL looked like so far - it was working fine (although no status filter was included):
$$HOST/attask/api/v19.0/project/search?program:name={DE:<my-other-field>}&name=$$QUERY&name_Mod=cicontains&name_Sort=asc
This is what I've tried, to achieve my current goal:
$$HOST/attask/api/v19.0/project/search?program:name={DE:<my-other-field>}&status=DED,CPL&status_Mod=notin&name=$$QUERY&name_Mod=cicontains&name_Sort=asc
This is not working, nothing is filtered out.
So, I've tested a few more things:
- status=DED&status_Mod=ne -> Works.
- status=CPL&status_Mod=ne -> Works.
- status=DED&status_Mod=notin -> Works.
- status=CPL&status_Mod=notin -> Works.
- status=DED,CPL&status_Mod=ne -> Doesn't work.
- status=DED&status_Mod=ne&status=CPL&status_Mod=ne -> Doesn't work.
If anyone has an idea how to filter out both complete and cancelled projects, I appreciate the help.
Thank you