Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error Running CURL Request With More than One Parameter

Steve Murphy August 14, 2014

Hi,

I'm learning the JIRA API with baby steps and I'm using CURL. I created a .bat file with the following contents:

curl -D- -u me:myPswd -X GET -H "Content-Type: application/json" https://mydomain.com/rest/api/2/search?jql=project=MY_PROJECT&maxResults=2 > query-example-output.json

However, when I run it, I get a DOS error:

'maxResults' is not recognized as an internal or external command,
operable program or batch file.

When I run the query without the "maxResults" parameter it works fine.

Any ideas how I can solve this problem?

Thanks!

Steve

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Alexey_Rjeutski__Polontech_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2014
Steve Murphy August 14, 2014

How do I mark this question as answered?

Steve Murphy August 14, 2014

Thanks, Alexey.

That solved my problem.

Alexey_Rjeutski__Polontech_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 19, 2014

You've done it properly )

TAGS
AUG Leaders

Atlassian Community Events