You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Is it possible to get all Stories tied to Epic given an Initiative.
I was able to get this by two separate queries
query 1: Using Parent Link = "XYZ" i got Epics linked to an initiative
query 2: Using Epic Link = "ABC" i got stories linked to Epic.
How to achieve this in a single query.
P.S: We use Script Runner as well
Thank You
Chander
Well i figured it out how to get this using Script Runner
1. Save a filter which pulls all Epics of an Initiative (level higher than Epic) say "ListOfEpics" (the filter id for below filter was 22323)
issueFunction in hasLinks("is Epic of") AND "Parent Link" = PR-448
2. Using above query as a subquery, i could retrieve all stories involved in Epics
issueFunction in issuesInEpics("filter=22323")
Reference article
Hope this helps someone using Script Runner till Atlassian deploys a way to report against grand children for Portfolio issue types.
Feel free to correct my query or any thoughts in improving above method is appreciated.
Cheers
Chander
Thank you for this! Awesome stuff. Based on your method, we figured out a way to use just one query.
issueFunction in issuesInEpics("'Parent Link' = XXX-##")
where XXX-## is your Initiative issue ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad that it helped you Christopher Heritage.
Cheers
Chander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Chander Inguva this was beautiful!
2. Using above query as a subquery, i could retrieve all stories involved in Epics
issueFunction in issuesInEpics("filter=22323")
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.
That helped me.
Taking into account using Script Runner plugin, I actually used like:
issueFunction in issuesInEpics("filter = 'my filter which returns epics'")
I wonder if each filter has it's id, or in your example it was just numeric name of the filter?
filter=22323
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.