简体   繁体   English

jira jql查询如何获取包含多个标签的所有问题

[英]Jira jql query how can I get the all issues that include multiple labels

I currently have a Jira soap webservice that allows users to get a list of issues by label. 我目前有一个Jira soap网络服务,该服务允许用户按标签获取问题列表。 I have a new requirement to allow multiple labels (only return items that include the labels test1 and test2...) 我有一个新要求,即允许多个标签(仅返回包含标签test1和test2的项目...)

The Label search requires the IN command. 标签搜索需要IN命令。 Below is what I currently have: 以下是我目前拥有的:

query = string.Format("status = {0} AND project = {1} AND Label In({2})",
status,project,formattedLabel);

I can't seem to find any documentation on jira query syntax. 我似乎找不到关于jira查询语法的任何文档。

How do I modify this query to return only issues that include all the lables passed by the user? 如何修改此查询以仅返回包含用户传递的所有标签的问题?

Ok I figured out the issue. 好的,我发现了问题。 I was wrapping the query string in " so the service was interpreting the label as "test,test1" instead of two labels test,test1. 我将查询字符串包装为“,因此服务将标签解释为“ test,test1”,而不是两个标签test,test1。

For anyone else below is the query. 对于下面的其他任何人都是该查询。 getIssuesFromJqlSearch(token,"project = TESTProj AND labels in (test,test1)", _maximumResults); getIssuesFromJqlSearch(token,“项目=(test,test1)中的TESTProj AND标签”,_maximumResults);

I also found what I was looking for on the jira site. 我还在jira网站上找到了我想要的东西。 https://confluence.atlassian.com/display/JIRA/Advanced+Searching https://confluence.atlassian.com/display/JIRA/Advanced+Searching

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

相关问题 如何获取所有Excel色带选项卡ID和标签? - How can I get all Excel ribbons tab ids and labels? 如何在LINQ查询中包含多个子表? - How can I include multiple child tables with a LINQ query? 在C#中,如何在不使用其他标签的情况下获得显示多个结果的标签? - In C#, how can i get a label to display multiple results without using additional labels? 如何在信封中包含多个模板? - How can I include multiple templates in an envelope? 如何使用.net中的jira rest api获取项目特定的jira问题? - how to get the project specific jira issues using jira rest api in .net? 如何使Visual Studio在项目中包括所有排除的文件 - How can I get Visual Studio to include all excluded files in a project 如何获取表单上的所有标签并将具有特定名称模式的标签的 Text 属性设置为 string.empty? - How can I get all Labels on a form and set the Text property of those with a particular name pattern to string.empty? 如何在查询中包含多个子级? - How to include multiple child into Query? 如何在查询语法 linq 中包含空列表? - How can I include empty lists in query syntax linq? 过滤查询后如何在实体框架中调用包含 - How can I call Include in Entity Framework after filter query
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM