It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Using the advanced search feature in the Issues section, I want to find all issues where I am NOT listed as a watcher (there can be multiple) and where I have at some point been the assignee. I've tried this:
assignee was estrom BEFORE now() and status != Closed AND watcher != currentUser() ORDER BY status ASC, key ASC
but it's still returning issues where I am listed in the watcher field. Where am I going wrong?
Ah, good, then I think you just need to tweak the watcher != bit. I think that is being read as "the watcher is not the current user". Looks right at a glance (and it completely confused me on my first comment too), but thinking about it, I think that will only match cases where the current user is the *only* watcher.
I think it needs to be "key not in watchedIssues()", because that says "check each issue, get the list of watchers and drop it if the current user is in there".
Torturous to explain in English, but it probably makes perfect sense in logic/computer
Um, I'm stuck. You say you want to find issues where you are not a watcher (before the JQL, which, incidentally, looks like it should work), then say that it's returning issues where you are not listed in the watcher field. That sounds correct? I suspect a typo here?
In the query above it schould be watcher not in (currentUser()) since watcher != currentUser() does not work
I was wrong:watcher != currentUser() is working . Had a typo in my query
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.