英文:
Write a JQL query for an issue that has issue links of type defect and with the status open
问题
我需要编写一个JQL查询,该查询寻找特定项目中具有解决类型的问题链接的问题。以下是我的JQL查询:project = NATMF and issuetype = Fix and issuelinktype = resolves
,我想要优化此查询,以确保问题链接的类型为Defect,并且缺陷问题类型的状态为open。如何操作?
英文:
I need to write a JQL query that is looking for issues in a specific project with issue links of type resolves. Here is my JQL query: project = NATMF and issuetype = Fix and issuelinktype = resolves
, I would like to refine this query to make sure that the issue links are of type Defect and that the status of the defect issue type is open. How to do that?
答案1
得分: 1
您可以为已连接的问题创建一个名为“Your_Linked_Filter_Name”的过滤器:issuetype = 缺陷 and 状态 = 开放
。并且在您的JQL查询中,您应该添加issueFunction in linkedIssuesOf("Your_Linked_Filter_Name")
。
因此,您的JQL查询应该如下所示:项目 = NATMF 和 issuetype = 修复和 issuelinktype = 解决和 issueFunction in linkedIssuesOf("Your_Linked_Filter_Name")
注意:
您需要安装ScriptRunner插件才能使用issueFunction。
英文:
You can create a filter for the linked issues named "Your_Linked_Filter_Name" : issuetype = Defect and status = open
. And in your JQL Query you should add issueFunction in linkedIssuesOf("Your_Linked_Filter_Name")
.
So your JQL Query should be like that : project = NATMF and issuetype = Fix and issuelinktype = resolves and issueFunction in linkedIssuesOf("Your_Linked_Filter_Name")
NB :
You should have the ScriptRunner plugin to use issueFunction.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论