Hi. We are moving to Jira cloud soon, and are looking for a certain functionality.
Is it somehow possible to query for the stories under Epics that are under Initiatives that have a certain attribute?
ex.: I want all stories and epics under initiatives with Product = 'ABC'
Maybe in Scriptrunner?
thanks,
bw
I’m Maurício, a support engineer at Appfire and I’m here to help you.
Unfortunately, using JQL of Jira, you’ll not be able to do it dynamically.
In the app where my team works, JQL Search Extensions for Jira, you can use this query to find all your stories and epics under initiatives with Product = 'ABC'.
issue in childrenOfIssuesInQueryRecursive("Product = 'ABC' and type=Initiative", 2)
Please contact our support if you have any other questions about this query.
We’ll be happy to help you!
Best regards,
Maurício
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I hope you are doing well.
However, you may be able to return issues linked recursively using the linkedIssuesOfRecursive() JQL function which the plugin provides and is documented here but we cannot guarantee if this will return the same structure that Portfolio provides.
Currently, Enhanced Search or ScriptRunner for Jira Cloud cannot return the full hierarchy from initiatives down due to the API's not existing to do this currently as explained above.
Alternatively, Atlassian provides the portfolioChildIssuesOf function out-of-the-box and the Parent Link function to search for child issues of an issue in the Advanced Roadmaps/Portfolio.
You may wish to raise a ticket with Atlassian to ask them this question in case they can recommend any other ways to search for Advanced Roadmaps/Portfolio issues inside of Jira Cloud.
I hope this helps. :)
Kind Regards
Kate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
unfortunately, this is trickier than one might think; as a "hierarchical query", it would really require some kind of join or subquery, which isn't available in plain Jira/JQL.
A few directions forward:
Hope this helps,
Best,
Hannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to expand on the last point, this is how this would look in the app that my team and I are working on, JXL for Jira. Put simply, you'd create a sheet with all issues that are potentially relevant to you, model your hierarchy (that's just a couple of clicks), and then use JXL filtering capabilities to narrow down to the issues that you care about:
(I'm using components here, but it would work the same way with any other field.)
Once you have your list of issues, you can work on these directly in JXL (much like you'd do in e.g. Excel or Google Sheets), trigger various operations in Jira, or export them for further processing.
Any questions just let me know!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this scenario, there are multiple Incidents with a custom field "Product = 'ABC'". Each of those has Epics, each of those Epics have stories.
I would like to return all the Initiatives/Epics/Stories, from the Initiative down, without knowing the Initiative key. Initiative.product = 'ABC'
It's confusing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure if I get your question correctly but feel free to correct me, if I am wrong. I could think of two scenarios
1. You have a parent issue & all other connected to them, in that case all you need to do is run advance jql as "Parent Link" = <Your_Parent_Issue_Key>
2. You have a custom field called product filled as ABC in all issues, then just run JQL as Product = 'ABC'
This should give you all the desired issue list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.