Forums

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

Get children portfolio of tickets provided by a filter

Nico Alberto February 23, 2025

Hi! I managed to get the children portfolio (all levels and from different projects) of a certain task using the following code, where XYZ-531 is a ticket level #2

 

parent IN ( portfolioChildIssuesOf("XYZ-531") )

Now, I would like to get all the children portfolio to use is as an input for a Jira plan.

I have a filter that returns several tickets from XYZ project and I would like to get all the children portfolio for all of them.

Is if possible to use a filter as input for the  portfolioChildIssuesOf function or is there another equivalent way to do it?

1 answer

0 votes
John Funk
Community Champion
February 23, 2025

Hi Nicolas - Welcome to the Atlassian Community!

Yes, you can use a filter with the portfolio function and base your plan on the filter. 

Nico Alberto February 23, 2025

mmmm perhaps I was not clear enough. 

 

My plan is already based on filters.

I have a filter (let's assume is called "Provide XYZ top level tickets") that is giving back as result lot of top level tickets (perhaps ~50) and now a have to include the portfolio of children for all of them.

The portfolioChildIssuesOf() function works fine pointing just one top level ticket, however I couldn't make it for more.

I my dreams, this would be the code

parent IN ( portfolioChildIssuesOf( filter="Provide XYZ top level tickets"  ) )

The above code is not working at all. How can get something equivalent?

 

John Funk
Community Champion
February 24, 2025

Gotcha. Yeah, that's a lot of top level tickets to get all of their children down the line. If you can't  just add a comma and another issue key in what you have so far, then you might try something like ScriptRunner which would give you functionality and power. 

Nico Alberto February 25, 2025

Add a comma with more tickets doesn't work either, it seems the portfolioChildIssuesOf function just accept one ticket as input.

 

This is however not a solution for me, since many people in the company create tickets, so the only way to have the latest list of tickets is with the filter.

 

Will ask to enable "ScriptRunner" and try something. thanks for you answers.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events