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?
Hi Nicolas - Welcome to the Atlassian Community!
Yes, you can use a filter with the portfolio function and base your plan on the filter.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.