Find parents issues which contains subtasks with label

ぃ、小莉子 提交于 2019-12-04 02:04:26

问题


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)


回答1:


Jira JQL doesn't not provide this out of the box, however there are many add-ons that extend JQL to allow this.

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(Subquery) - Returns the parents of issues specified by the subquery.

issueFunction in parentsOf("labels in (needDesign)")

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:

  • 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.



来源:https://stackoverflow.com/questions/21136900/find-parents-issues-which-contains-subtasks-with-label

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!