Selenium Script for removing users from jira groups.

Hi Team,

This is another tutorial from jira side for the removal of jira users from specific or all groups using a simple selenium script. Selenium makes it easier for the user to perform the task which will take real good time when done manually. In the below example, I have not taken the users list from any external source, but the same is explained in my previous tutorials. Here the user list is a simple string where users are separated by comma and the same are iterated using the for loop.

The TestClass.java file is as follows:

In the above example we have used “selenium.getSelectOptions(“groupsToLeave”)” (see line 54), this returns the list of groups in which the user is added, where groupsToLeave is the String type locationSelector. This location selector is nothing but the list box on the jira Edit user group page which display the groups (showed in below pic). Once we have the groups we can use them and remove the user for all those groups.

This is a really time saving option for such repetitive actions. Hope this will help you.

Regards,

Nikhil Naoghare.

2 thoughts on “Selenium Script for removing users from jira groups.”

  1. Hello there, simply was aware of your weblog through Google, and located that it’s really informative. I am gonna be careful for Brussels. I’ll appreciate in case you continue this in future. Lots of folks shall be benefited out of your writing. Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.