It's all about the answers!

Ask a question

how to send REST API to RQM to query 2 conditions?


jane zhou (106865) | asked Jun 14 '18, 12:27 a.m.

 Hi Someone who may concern,


We are working on CLM 6.0.4.

I found I can use command to get links as this, i.e. one condition :
https://clm.jkebanking.net:9443/qm/service/com.ibm.rqm.integration.serv ice.IIntegrationService/resources/JKE+Banking+(Quality+Management)/test case?calmlinks=true

it can work.

However, when I tried to add one more condition with &, it can not work, server reject my request, declare it can not recognize the second condition.


'calmlinks' is not recognized as an internal or external command,

And, I have tried use 'and' to replace '&', it did not report error, however, it just will not run the second condition.

So, I am wondering why this may happen? then how can we query a artifact with 2 conditions?

Thanks!

Best Regards,
Jane Zhou





Comments
Don Yang commented Jun 14 '18, 1:57 a.m.

I tried with 602(don't have 604 to try with for now) using your URL on a REST client, it works for me.


jane zhou commented Jun 14 '18, 8:25 a.m.

Hi Don,


         Thanks for quick response. 
         So do you mean replace & with 602?

Thanks!
Best Regards,
Jane 
 
           


jane zhou commented Jun 14 '18, 3:10 p.m.

Sorry, just realized you mean on 6.0.2... forgot to mention, we are using RQMURLutility to send GET command. not sure whether it may impact result or not. 

One answer



permanent link
jane zhou (106865) | answered Jun 14 '18, 4:49 p.m.

 Hi Don,


       Just found the solution, need to replace & to %26
        it is escape thing...

       Thanks!

Best Regards,
Jane Zhou
       


Comments
Don Yang commented Jun 14 '18, 7:38 p.m.

I used REST client, so copy your URL has no problem. Good to know you figured it out.

Your answer


Register or 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.