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

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.

 

0 votes

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.


Be the first one to answer this question!

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
× 10,938

Question asked: Nov 08 '13, 6:21 a.m.

Question was seen: 5,244 times

Last updated: Nov 29 '13, 4:37 a.m.

Confirmation Cancel Confirm