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

Using POST to search API

Oliver McPhee June 9, 2015

I am doing a POST for a search:

$ curl -D- -X POST -H "Authorization: Basic correcttokenhere" -H "Content-Type: application/json" --data '{"jql": "component=Integrations AND assignee=adam AND fixVersion = Release 13","startAt": 0,"maxResults": 1,"fields": []}' "http://jira.example.org/rest/api/2/search"

But the 'Release 13' section breaks it. Apparently I can't have a space between Release and 13. How do I get around this?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 9, 2015

Try replacing the space with '%20'. generally that has been what I've had to do when making requests to JIRA. 

0 votes
Timothy
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.
June 9, 2015

Try either using the Component's ID or quoting the word Release 13.

TAGS
AUG Leaders

Atlassian Community Events