Hi All,
I'm trying to use the PROJ/search API endpoint to find projects that meet the following criteria:
(status is not CPL AND status is not DED AND enteredByID = 111) OR (status is not CPL AND status is not DED AND enteredByID = 222)
I know that the API takes the filters in a text mode like manner, so here's my attempt for the 1st part (line breaks added here only for easier reading):
PROJ/search?$$LIMIT=2000&fields=ID,name,status,enteredBy:name
&status=CPL
&status_Mod=ne
&AND:1:status=DED
&AND:1:status_Mod=ne
&enteredByID=111
How would I add the 2nd part of the filters?
I'm trying this:
PROJ/search?$$LIMIT=2000&fields=ID,name,status,enteredBy:name
&status=CPL
&status_Mod=ne
&AND:1:status=DED
&AND:1:status_Mod=ne
&enteredByID=111
&OR:1:status=CPL
&OR:1:status_Mod=ne
&OR:1:AND:2:status=DED
&OR:1:AND:2:status_Mod=ne
&OR:1:enteredByID=222
But it gives me an error response:
422 Unprocessable Entity - APIModel V19_0 does not support field AND (Project)
I appreciate if anyone can share any idea.
Cheers,
Tibor