How to find Jira subtasks with assignees different from their parent

In Jira Cloud with CustomRunner, I need a filter that shows subtasks whose assignee differs from the parent’s. I tried this:

type = "Subtask" AND queryFunc in fetchChildren("sprint in current() AND assignee != parentAssigner()")

How can I reference the parent’s assignee?

hey, ive had a similar prob. ended up using a custom field to hold the parent’s assignee then filtering subtasks by comparing it. not perfect but it solved it for me with script runner

I encountered a similar need in a past project. The direct reference to the parent’s assignee is tricky because of the limitation in accessing parent properties directly within the filter language. One way I addressed this was by incorporating a custom script that copies the parent assignee to a dedicated field on the child task during creation or update. This method allowed filtering without breaking the separation of concerns between the parent and child. While it’s not an out-of-the-box solution, it has proven reliable in keeping your query flexibile and easy to maintain.

Based on my experience, the inability to directly reference the parent’s assignee in a JQL query for subtasks is a known limitation that required a bit of creative thinking. In one project, I addressed this by setting up an automation rule that copied the parent’s assignee into a custom field on the subtask when it was created or updated. With this extra field in place, constructing a filter to compare values became straightforward. Although implementing automation might introduce a slight increase in system complexity, it offered a robust solution and improved the overall filtering flexibility.