JIRA JQL:搜索两个字段具有相同值的所有问题
JIRA JQL: search all issues where two fields have identical value
在我们公司,我们的 JIRA 中有一个自定义字段,用于跟踪验证问题的人员(它是单个用户选择器)。现在我想找到分配给同一个人并由同一个人验证的所有问题。
我试过这个 JQL
project = OURPROJECT AND assignee = verifier
但我收到以下错误消息:
The value 'verifier' does not exist for the field 'assignee'.
我需要通过引用检查另一个字段的值。
我想我不是唯一一个在找这个的人,但令我惊讶的是我找不到任何东西。
Syntax: CustomFieldName Alias: cf[CustomFieldID] Examples:
Find issues where the value of the "Location" custom field is "New
York":
location = "New York"
Find issues where the value of the custom field with ID 10003 is "New
York":
cf[10003] = "New York"
Find issues where the value of the "Location" custom field is "London"
or "Milan" or "Paris":
cf[10003] in ("London", "Milan", "Paris")
Find issues where the "Location" custom field has no value:
location != empty
所以如果我是你,我会尝试 "custom field = something";例如:
project = OURPROJECT AND verifier = assignee
或者试试别名
开箱即用的 JQL 无法做到这一点。
不过,您可以使用其他 JQL 函数扩展 JQL。因此,如果您 able/willing 会编写代码,则可以自己添加它。最常见的 2 种方法是:
- 编写您自己的自定义 add-on 并实现您自己的 JQL 函数。有关示例,请参阅 this tutorial。
- 使用 Script Runner add-on and implement a custom JQL function in Groovy. See the documentation for examples.
在我们公司,我们的 JIRA 中有一个自定义字段,用于跟踪验证问题的人员(它是单个用户选择器)。现在我想找到分配给同一个人并由同一个人验证的所有问题。
我试过这个 JQL
project = OURPROJECT AND assignee = verifier
但我收到以下错误消息:
The value 'verifier' does not exist for the field 'assignee'.
我需要通过引用检查另一个字段的值。
我想我不是唯一一个在找这个的人,但令我惊讶的是我找不到任何东西。
Syntax: CustomFieldName Alias: cf[CustomFieldID] Examples:
Find issues where the value of the "Location" custom field is "New York":
location = "New York"
Find issues where the value of the custom field with ID 10003 is "New York":
cf[10003] = "New York"
Find issues where the value of the "Location" custom field is "London" or "Milan" or "Paris":
cf[10003] in ("London", "Milan", "Paris")
Find issues where the "Location" custom field has no value:
location != empty
所以如果我是你,我会尝试 "custom field = something";例如:
project = OURPROJECT AND verifier = assignee
或者试试别名
开箱即用的 JQL 无法做到这一点。
不过,您可以使用其他 JQL 函数扩展 JQL。因此,如果您 able/willing 会编写代码,则可以自己添加它。最常见的 2 种方法是:
- 编写您自己的自定义 add-on 并实现您自己的 JQL 函数。有关示例,请参阅 this tutorial。
- 使用 Script Runner add-on and implement a custom JQL function in Groovy. See the documentation for examples.