I'm using Jira cloud with ScriptRunner. I'm trying to update the filter for my scrum board so that it will show subtasks only if the assignee on the subtask is different than the assignee on the main issue.
I've gotten close using the following query, but I don't know how I can reference the parent/child issue's field instead of using currentUser():
issueType = Sub-task AND issueFunction in subtasksOf("sprint in openSprints() AND assignee != currentUser()")
Instead of currentUser(), I need it check where the parent's assignee doesn't match the child's assignee.
Try this inside Enhanced Search without the sprint part (Because I don't have sprints created in my test instance) and it works.
Let me know if this works for you.