Hi Atlassian team,
I want to retrieve list of ticket id(Both Parent and Child) using JQL query based on Custom field value present in Parent ticket.
Means i have a parent ticket called 'Request'. And in this ticket i have a subtask called 'Instance'.
In Parent ticket i have a custom field 'Customer / Organization' but this is not present in subtask.
I have executed below JQL query and wanted the list which contains both Parent and subtask(child) tickets. But i am getting only Parent tickets.
project = "VPC-Intake Cap Demand Mgmt" and resolution is not EMPTY AND type in(Request,Instance) and "Customer / Organization" ~ "ABC"
Please note Request is parent and Instance is Subtask(child).
Please suggest the correct JQL query.
Thanks!
Welcome to the Atlassian Community!
My name is Prosper, a support engineer at Appfire, and I’m here to help.
If you are open a plugging suggestion, I recommend trying our App JQL Search Extension for Jira.
You can use this query:
issue in childrenOfIssuesInQuery("labels = gen") or issue in parentsOfIssuesInQuery("") and labels = gen
This query will return both parents and child issues where the parent issue has the label "gen", You can substitute this label for the custom field in question for your use case.
For more details about these queries, feel free to refer to our documentation, and don't hesitate to reach out to our support team if you have any further questions.
We’d be happy to assist you!
Best regards,
Prosper.
Disclaimer, marketplace partner!
@Pramod_Kumar_Ojha minware can help with this if you are open to working with a 3rd party. JQL has some funky limitations and we have a ton of automated workarounds to help make your reporting easier - there is a free trial available if you want to check it out.
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.
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:
If you want to run your search dynamically, without manually "stitching" two queries together, you'll need extra tooling:
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.
... and 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 issue hierarchy (if you're using the default hierarchy, that's just one click), and then use JXL filtering capabilities to narrow down to the issues that you care about:
(I'm using labels here, but it would work the same with any other field(s).)
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.