[RTC 6.0.5] Execute existing query via API, but with user input
Good morning everyone.
I have to call a query already created, but that has a variable input parameter depending on the execution, in detail it is a getByIdWorkitem and the ids can always be different.
I have already structured the code on how to call it but I don't understand how to pass the attribute in question. Can you help me? I use the Java client api at version 6.0.5.
I am available for further details.
Thanks to everyone.
Accepted answer
https://rsjazz.wordpress.com/2022/03/01/ewm-rest-api-to-access-existing-work-item-queries/ shows how the Web query API works. There is more documentation, but I don't think I found how to provide parameters. You could try in the tool and record the communication.
3 other answers
Good morning, thanks for the reply.
I am talking about parameterized queries, already created on RTC but that at the time of execution ask for the parameter in input.
Existing queries allow parameters to be inserted on each individual launch.
I am talking about parameterized queries, already created on RTC but that at the time of execution ask for the parameter in input.
Existing queries allow parameters to be inserted on each individual launch.
I would need this possibility from the API. Thanks.
If the query is stored in RTC (slice master), you cannot pass parameters directly
Pre-built queries in RTC usually do not support parameterization like SQL. Instead, you must:
Create the query dynamically in code, for example using Term and AttributeExpression.