I am using the following query to find all epics that have sub-tasks that match a certian criteria:
issueFunction IN epicsOf("issueFunction IN parentsOf('...')")
But what I need to do is find epics that are resolved and had sub-tasks that were resolved AFTER the epic was resolved.
You'd have to use the dateCompare() issuefunction, but that only works when comparing dates from the same issue. To my knowledge, there is no way to compare dates from multiple issues.
However, you could create a scripted field on the epic that stores the most recent resolved date among all sub-tasks under the epic. Then run the following JQL:
issuefunction in dateCompare("issuetype = epic", "resolved < scriptedFieldName")
If you need assistance with writing the scripted field, I think I have written something that does something similar, although it might take me a bit to modify it to this particular use case.
To confirm, I've never tried to run JQL against a scripted field, but I think it would work.
I had something that just needed a little tweaking, but this seems to work in my environment:
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.