Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can add watchers in Bulk?

Nazia Tarannum
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.
December 8, 2011

hi

Can we add watchers in bulk?

Please advise

Thanks

Nazia

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
December 8, 2011

JIRA Command Line Interface has an addWatchers action. That can be used in a script or via runFromSql or runFromCsv to do bulk actions.

0 votes
Haddon Fisher October 31, 2013

Are there any options for OnDemand users? It looks like the plugins and work-arounds for this require self-hosted.

Bob Swift OSS (Bob Swift Atlassian Apps)
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.
October 31, 2013

JIRA CLI works with OnDemand.

Haddon Fisher November 3, 2013

Oh perfect thanks! BTW the atlassian marketplace entry for the CLI says it's not available for OD.

Bob Swift OSS (Bob Swift Atlassian Apps)
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.
November 4, 2013

Yes and that is just an annoying "feature" of Marketplace until they fix it.

0 votes
boardtc
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.
July 25, 2012

It would be nice to add an option to the bulk edit to *append* watchers. Duplicate of https://answers.atlassian.com/questions/18488/is-there-a-way-to-add-a-watcher-to-a-set-of-issues-in-batch

0 votes
Nikhil Naoghare December 8, 2011

Nazia, yes we can add multiple watchers at a time using the plugins. For this, you need to get the users from some external source such as property files or something else. You may use the following lines:

{   
WatcherManager watcherManager = getWatcherManager();
      com.opensymphony.user.User user1 = UserUtils.getUser("username1");
      com.opensymphony.user.User user2 = UserUtils.getUser("username2");
              
      if(!watcherManager.isWatching(user2, mutableIssue.getGenericValue()))
      {
            watcherManager.startWatching(user2, issue.getGenericValue());
            watcherManager.startWatching(user1, issue.getGenericValue());
      }

}

Where issue is the object of mutable issue.

Regards, Nikhil.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events