Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Search for all child issues based on a field value on the parent

Inactive Stephen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2019

Hi All,

I'm trying to search for all issues that have a parent with a specific value in one field.

A little upfront info:

- We have Scriptrunner, Portfolio and Tempo

- Our hierarchy is Initiative > Feature > Epic > Story

- Initiatives belong to Accounts - this is managed via Tempo and not an issue type

What I'd like to do is search for all Features which have an Initiative (parent link) where the Initiative's Account field (tempo custom field) is equal to a range of Account IDs. Is that possible?

Thanks,

Ste

1 answer

0 votes
Logan Clemons July 2, 2019

I'm essentially trying to do the same thing. Did you ever find a solution to this problem?

Inactive Stephen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2019

@Logan Clemons - Yes I did!

In our specific example, the JQL we use is:

issuefunction in portfolioChildrenOf("issuetype = Initiative and Account = 'XXX'")

A few things to note:

  • This JQL uses ScriptRunner
  • The search at Initiative level is contained between the two double quotation marks. We use single quotations on the Account field as a double mark would be seen as closing the query.
  • This provides us all the Features and Epics below an Initiative, based on our Jira Portfolio hierarchy. 

^ This was specific to our need, but there are other ways of doing this and to lower levels of your work hierarchy - for example, we use a similar approach when searching for stories. 

If this doesn't provide you sufficient information, let me know your specific problem and I'd be happy to try and help you :)

Ste

Suggest an answer

Log in or Sign up to answer