Current search query:
( assignee = currentUser() OR watcher=currentUser() )
AND
resolution = Unresolved
ORDER BY priority DESC, updatedDate DESC
For items of the same priority, I want the items where I'm the Assignee to appear above items where I'm a Watcher.
So something like this as the second condition in the "ORDER BY" clause. ORDER BY would need to allow sorting on integer values:
If ( assignee = currentUser() ) {
If ( watcher = currentUser() ) { return 1 } Else { return 2 }
} Else { return 3 }