How to use parametrized queries in plain java API
3 answers
I hate it when u make me work to answer a question!!.. but I learn something
in my case the query is find the workitem(s) with the old_wi_id field with value=?, in this case the data was '123456'
https://jazz.intranet.xx.com/ccm/resource/itemOid/com.ibm.team.workitem.query.QueryDescriptor/_EG5I8pzfEeOsZYheQqjNwg?_mediaType=text/html&jsonParameterValues=%7B%22com.xx.workitem.attribute.old_wi_id3%22%3A%7B%22attributeId%22%3A%22com.xx.workitem.attribute.old_wi_id%22%2C%22operator%22%3A%22is%22%2C%22values%22%3A%5B123456%5D%7D%7D&nocache=1395840685618
Comments
sam detweiler
Mar 26 '14, 7:53 a.m.I would check Ralph's blog for dynamic query construction. I haven't done this myself.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 26 '14, 8:11 a.m.Neither have I. Unfortunately. I would be interested in how it works too.
I have done construction of queries, but I am not sure how parameters are represented and filled.
Piotr Aniola
Mar 27 '14, 9:03 a.m.Thank you, you're right that's not a good workaround.
sam detweiler
Mar 27 '14, 2:11 p.m.did u see the syntax below?