Need Groovy script to extract users from a Jira group and add to watchers list

Ravi Mandava June 9, 2014

I'm looking for a simple code to extract users from a Jira group and add to watchers list. Please help!

1 answer

0 votes
Orzech
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 9, 2014

Hi, the way you can do this is by using JIRA REST API: https://docs.atlassian.com/jira/REST/latest/

To get the users from group use: https://docs.atlassian.com/jira/REST/latest/#d2e1478

To set them as watchers: https://docs.atlassian.com/jira/REST/latest/#d2e4361

If you want to do this from Java (or Groovy) application you could use JIRA Rest Java Client library: https://marketplace.atlassian.com/plugins/com.atlassian.jira.jira-rest-java-client

Suggest an answer

Log in or Sign up to answer