JQL 查询在 Jira API 调用中失败

JQL query fails in Jira API call

我的 Jira API 调用有什么问题? ''' 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 '''

我收到以下错误

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'

我想要实现的是-

  1. 此命令应提供 json 输出。从 Json 输出中,我必须提取问题 ID。
  2. 在 bitbucket 管道中,我必须 运行 yaml 在 jo 完成时将票证移动到不同的状态。

我会 运行 Jira UI 中的查询,然后复制共享 link 并在 curl

中使用它