Clifford Sanders

Continuous Integration and Delivery

Menu

Skip to content
  • Home
  • About

Tag Archives: Jira ScriptRunner

List all active Jira users using the Script Runner plugin

Posted on February 21, 2014 by Clifford Sanders

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.user.util.UserUtil

UserUtil userUtil = ComponentAccessor.getUserUtil()

result = ”

userUtil.getUsers().findAll{it.isActive()}.each{ u ->
result += u.name + “,” + u.displayName + “,” + u.emailAddress + “\r\n”
}

result

Posted in Jira / Tagged Jira ScriptRunner / Leave a comment

Recent Posts

  • Create a md5 hash of two text files which can be to used as property in Maven command on a Windows Jenkins slave
  • How to git fetch without a ssh warning
  • Display execution time of shell commands in seconds
  • Monitor the status of a GitHub Enterprise replica
  • Install Oracle JDK 8 on CentOS 6.5

Recent Comments

ScottK's avatarScottK on Solved weird problem with exec…

Archives

  • March 2015
  • January 2015
  • June 2014
  • May 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013

Categories

  • Groovy Postbuild
  • Jenkins
  • jenkins-cli
  • Jira
  • Monitoring
  • Plugin Development
  • Uncategorized

Meta

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Clifford Sanders
    • Already have a WordPress.com account? Log in now.
    • Clifford Sanders
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar