Is there a way to add a watcher to a set of issues in batch?
i.e. Select all issues for a certain project and add a specific watcher to all of them in one shot?
Thanks!
JIRA Command Line Interface has an addWatchers action. That can be use with the runFromSql action to select issues and add one or more user ids as watchers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bob, the doc shows:
jira --action addWatchers --issue "ZJIRACLI-2" --userId "user, developer"
Does this mean I have to issue this CLI for each issue, or can I put in a "macro" to add the watcher to multiple issues in one shot?
Something like:
jira --action addWatchers --issue "ZJIRACLI-*" --userId "user, developer"
(note the splat)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, just one at a time. However, use runFromSql to issue the command for each issue selected by your SQL - assuming you have access to the jira database. You will need your database specific access information, but it would be something like:
jira --action runFromSql --common "--action addWatchers --userId user1,user2" --sql "select pkey as "issue" from jiraissue where pkey like 'XXX-%'" --database jira --driver postgresql --dbUser admin --dbPassword admin --host dbserver
Of course you should be careful and test this on a couple of issues first and/or use --simulate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We need this to be added to the bulk edit UI. Duplicated by https://answers.atlassian.com/questions/24497/can-add-watchers-in-bulk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a way of doing this in the UI?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.