简体   繁体   English

JIRA REST API jql表达式可按标准问题类型进行搜索

[英]JIRA REST API jql expression to search by standard issue types

I'm using the following query in the JIRA REST API to get all the issues of an sprint, by sprint id: 我在JIRA REST API中使用以下查询,以按sprint ID获取sprint的所有问题:

GET /api/latest/search?jql=Sprint=2131

However, that returns all the issues but I'm only interested in standard types but not sub-types as sub-task, sub-bug, etc. 但是,这返回了所有问题,但是我只对标准类型感兴趣,而对子任务,子错误等子类型不感兴趣。

Looking to the "Search" option in the JIRA GUI I have seen the following expression that probably suffices: 在JIRA GUI中查看“搜索”选项,我已经看到以下表达式可能就足够了:

issuetype in standardIssueTypes()

However, I'm not sure how to apply that to the jql= parameter in the REST API. 但是,我不确定如何将其应用于REST API中的jql=参数。

通过使用AND条件issuetype in standardIssueTypes()简单添加问题issuetype in standardIssueTypes()

jql=sprint=2131 and issuetype in standardIssueTypes()

Just like you see. 就像你看到的那样。

GET [host]/rest/api/latest/search?jql=issuetype%20in%20standardIssueTypes()

or 要么

POST [host]/rest/api/latest/search

Body:

{
    "jql": "issuetype in standardIssueTypes()"
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM