It's all about the answers!

Ask a question

Run parameterized query using curl from command line


Nilesh Patil (1734150) | asked Nov 08 '13, 6:21 a.m.
edited Nov 13 '13, 12:08 a.m.

Hi,

I want to run a query from command line. I am able to run simple query from command line using curl programming.

Now I have created a query for which I am giving the value for one query parameter at the time of running the query.

Help me to pass the value to query parameter from Command Line using CURL.

 


Comments
Millard Ellingsworth commented Nov 22 '13, 7:05 p.m.
FORUM ADMINISTRATOR / JAZZ DEVELOPER

I'm not sure how many people use RTC this way, so you might get some more help if you bootstrap them with your current example. Perhaps show the query that you use successfully with curl and the query that you would like to use. 


Nilesh Patil commented Nov 29 '13, 4:28 a.m. | edited Nov 29 '13, 4:37 a.m.

Thanks Milard,

I am describing queries in text format,

Successful query is as follows,

Select Defect workitem where Resolved Release = "edgeconnect_3-2-2"

To run above I am using below command,

curl -k -b .\cookies.txt https://serverhostaddress:9443/ccm/resource/itemOid/com.ibm.team.workitem.query.QueryDescriptor/_weS48Dy7EeOFtqc4wIQFTg?_mediaType=text/csv> QueryResult.csv

Query I woud like to use is as follows,

Select Defect workitem where Resolved Release = provided at the time of running.

For this I don't know how to pass the value with the command.

I tried to pass screenshots of the queries but could not able to do that, sorry..

Please let me know if you need more information.

Be the first one to answer this question!


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.