I want to search for epics that have tasks with a specific value in some custom field. (This custom field is field in the task, not in the epic)
I’m Charlotte, a support engineer at Appfire and I’m here to help you.
Unfortunately, natively, 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 get all Epics whose Tasks have a specific value in a custom field:
issue in epicOf("type = Task AND 'Custom field' = xxx")
Please contact our support if you have any other questions about this query.
We’ll be happy to help you! 😉
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this is not possible with Standard JQL, as you would need Subqueries. If the number of expected results isn't too long, you could
1. Switch to List View (-> Working with search results | Jira Software Data Center 9.16 | Atlassian Documentation)
2. Add "Epic Link" as a Column
3. Filter for the task (for instance: issuetype = Task and customfield = xxx)
You'll be able to get all Epics with matching Tasks from the List view. Again: only a viable workaround if the number of results is small.
If that's not enough, there are some Marketplace Apps that extend the JQL capabilities, ScriptRunner being one of them.
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 - so you'll need some kind of extra tooling.
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, enable the default issue hierarchy (that's just one click), and then use JXL filtering capabilities to narrow down to the epics that you care about:
(I'm using a custom field Team here, but it would work with any other field, too.)
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.
Thank you for your answer. I have Script Runner and managed to solve my problem. I used functions:
issuetype = Epic and issueFunction in epicsOf('issuetype = Zadanie and "Typ zadania" = WZP and status=GOTOWE')
Regards,
Kate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for your replies.
I forgot to add that I have the Script Runner plugin, does it change anything?
I try queries like this:
project = XXX and issuetype = Epic and issueFunction in epicsOf("issuetype = Task" ) and issueFunction in epicsOf('"Typ zadania" = WZP') and issueFunction in epicsOf('"Status" = Gotowe')
Regards,
Kate
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.