Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL Option for querying stories by the Watcher list

Serena Heil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 7, 2020

Our JIRA is on-prem.  The client is asking for a list of stories based on users in the Watcher list.  How can I use JQL to search this?

We have a similar filter setup using watcher = currentUser() - but I'm looking for something like 

watcher in (<user1>, <user2>, <user3>) because they're not associated to any 'groups' in jira

1 answer

1 accepted

1 vote
Answer accepted
Mike
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2020

I think depending on what you are looking to query, one of the below should work:

  • issuetype = story and (watcher = user1 and watcher = user2)
  • issuetype = story and (watcher = user1 OR watcher = user2)
  • issuetype = story and (watcher = user1 OR watcher = user2) or (watcher = user1 and watcher = user2)
Serena Heil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 7, 2020

Thank you so much!  This worked like a charm:

issuetype = story and (watcher = user1 OR watcher = user2)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events