Showing posts from December, 2018

Continuous cleanup for Jira. Part 1.

  Hi!    After reading  this article , I have tried to implement automation scripts for my Jira instance. Today, I would like to share a few scripts related to clean up inactive users references to issue properties, group, role membership.      Disclaimer,   as usual, everything should be tested in the test-environment first. Also, I'll be happy if you share or provide advice for the related small scripts. All scripts were tested and executed on Jira 7 Server releases (7.2.1, 7.6.3, 7.6.10). Well, you can use for execute groovy on Jira one of these apps (add-ons) -  Scriptrunner for Jira (commercial)  ,  MyGroovy (Opensource BSD-2)  ,  Groovioli (Opensource BSD-2) Well, let's next step is cleanup our Jira instance. 1. Let's remove memberships from group and project role for inactive users. (This script has been adopted for Jira 7 from Jamie Echlin answer from import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.ComponentManag