What is wrong in my Jira API call ? ''' curl -D- -u : -X GET -H "Content-Type: application/json" https://jiratraining02.atlassian.net/rest/api/2/search?jql=project=Project_WebDevelopment_Demo AND issuetype=Story AND status=READY FOR DEV '''
I am getting the below error
curl: (6) Couldn't resolve host 'AND'
curl: (6) Couldn't resolve host 'issuetype=Story'
curl: (6) Couldn't resolve host 'AND'
curl: (6) Couldn't resolve host 'status=READY'
curl: (6) Couldn't resolve host 'FOR'
curl: (6) Couldn't resolve host 'DEV'
What I want to Achieve is -
- This command should give a json output. From the Json output, I have to extract the issue ID.
- In a bitbucket pipeline, I have to run yaml to move the tickets to a different status when the jo completes.
&) and without spaces.curlis treating the spaces as separators for its arguments. - Simon Crane