Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[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.

0 votes


Accepted answer

Permanent link

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.

Emiliano Iannetti selected this answer as the correct answer

1 vote


3 other answers

Permanent link
If the query is stored in RTC (Jazz), 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.

1 vote


Permanent link
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.

1 vote


Permanent link
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 would need this possibility from the API. Thanks.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 419

Question asked: Apr 07 '25, 5:59 a.m.

Question was seen: 1,565 times

Last updated: May 06 '25, 4:15 a.m.

Confirmation Cancel Confirm