How I come to know the list of issues in JIRA that the user is watching

Need your help in achieving this.

1. I need to know the list of issues in JIRA, the user is watching.

Example : User A is renamed to User B, now I need to know the list of issues in JIRA where user A is part of watcher's list. Now I need to replace the user A with user B in all these issues. How do I come to know the list of issues, user A is watching.

2. After getting the list of issues, I need to replace user A with user B in all these issues. How do I achieve this.

4 answers

Hi

1.- project = XXXX and watcher = userA

2.- I think that your best option is developing a simple groovy script (perhaps can be done with jelly). Here is a slightly different use case, solved with a groovy script. They are trying a add some user as a watcher of the parent issue.

HTH

You can try this SQL:

SELECT *
  FROM [jiraschema].[jiraissue] i
  JOIN [jiraschema].[userassociation] a ON i.[ID] = a.[SINK_NODE_ID]
  WHERE [ASSOCIATION_TYPE] = 'WatchIssue'

1.Select Advance Search,

2.watcher = currentUser() // If you want issues you are watching or user for whom you want to watch

 

please  use below simple JQL.

watcher = "username"

It will list all issues where "username" is watcher 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,870 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot