Using REST on RTC, how do you query for a null or empty or unassigned field? What is the syntax?
One answer
Hello Glenn,
you may use Firefox and Firebug - Net tab
Run a new / unsaved query with the params you need,
in Firebug, locate the call POST IQueryRestService#getResult()
check the Post tab and locate the Json values we pass:
jsonExpression:
{"operator":"AND","attributeExpressions":[{"attributeId":"foundIn","operator":"is not","values":["","_kRe6II6GEeOuIeSMwSQQhw"
],"variables":[]}],"termExpressions":[],"similarityExpressions":[]}
Assuming that value
_kRe6II6GEeOuIeSMwSQQhw
correspond to "Unassigned"
(I would rather use OSLC - https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20)
Hope it helps,
Eric