问题描述
我有一个JIRA项目,我的一些任务包含带有lasbels"needDesign"的子任务.
I have a JIRA project and some of my tasks contains subtasks with lasbels "needDesign".
是否可以找到所有包含带有该标签的子任务的父任务?
Is it possible to find all parent tasks which contains subtasks with that label?
(我使用按需吉拉版本)
(I use ondemand jira version)
推荐答案
Jira JQL并未提供现成的功能,但是有许多扩展JQL的附加组件允许这样做.
Jira JQL doesn't not provide this out of the box, however there are many add-ons that extend JQL to allow this.
我通常建议您安装 Script Runner 加载项(请参阅 https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner ),因为它包含许多有用的内置函数,可以像这样在JQL中执行搜索你在问.
I would normally suggest you install the Script Runner add-on (see https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner) as it contains many useful built-in functions to perform searches in JQL like the one you are asking about.
您要使用的此插件的特定功能是:
The particular function for this add-o you want to use is:
parentsOf(子查询) -返回由子查询指定的问题的父项.
parentsOf(Subquery) - Returns the parents of issues specified by the subquery.
issueFunction in parentsOf("labels in (needDesign)")
很遗憾,您说您正在使用 ondemand ,并且此附加组件当前不适用于 ondemand .
Unfortunately you stated you are using ondemand and this add-on is not available for ondemand currently.
据我所知,您的选择是:
Your options as far as I see is to:
- 使用REST API编码功能(需要具备编程技能才能搜索子任务,然后获取父级ID)
- 定期查看Jira市场中的按需加载项,以获取扩展JQL的更新后加载项(我没有看到任何满足您需要的功能)
- 联系 Script Runner 插件所有者和/或Jira,并请求此功能.
- code a function using the REST API (requires programming skills search for subtasks then get the parent id)
- periodically review the ondemand add-ons in the Jira marketplace for updated add-ons that extend JQL (I didn't seen any that do what you need)
- contact the Script Runner add-on owner and/or Jira and request this functionality.
对于使用子任务的任何人来说,这种子查询都是非常基础的,令我感到惊讶的是,没有一个捆绑的解决方案,也许这是按需提供产品的潜在性能问题.
This type of subquery is so fundamental for anyone using subtasks I am surprised that there isn't a bundled solution for this, perhaps it is a potential performance issue for the ondemand offering.
我知道那不是您想听到的,但希望能回答您的问题.
I know that is not what you want to hear but hope that answers your question.
这篇关于查找包含带有标签的子任务的父母问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!