Run parameterized query using curl from command line
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.
|
Be the first one to answer this question!
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.
Comments
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.
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.