Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


JIRA

Name

SU for JIRA

Author(s)

Andy Brook [Plugin People] (Unlicensed)

Homepage

this page

Price

Commercial

Compatibility

JIRA 5 or newer

Marketplace

SU for JIRA

IssueTracking

Issues

https://thepluginpeople.atlassian.net/servicedesk/customer/portal/1/group/1/create/6


Table of Contents


Info
title

Dual Marketplace/Vendor licensing

Dual licensing means SU for JIRA can be:
a) Licensed with Marketplace license
b) Licensed with Vendor licenses

Dual licensing does not mean SU Vendor licenses are compatible with marketplace, can be installed in marketplace or otherwise used anywhere except the Vendor license screen, as they are by definition Vendor licenses.

For users wanting to switch to Marketplace licensing, when renewing maintenance, a 50% discount for their specific license tier will be given. This discount is done through a single use promotion code.  At this time transfer 'mid-year' is not being offered.

...

Excerpt

As a JIRA administrator you get users saying 'I cant do xyz', or you have conversations like 'you should see xyz' and the phone says 'no I cant'. You need to be your user to ensure clarity of instructions, and to spot/resolve other kinds of problems. Without giving passwords away, how do you do that? Well, you use this plugin. This plugin enables system administrators to become another user (to 'su' in Linux speak), enable setup, testing etc

Installation

  1. You can install this plugin via the universal plugin manager!

License install

The Plugins 'configure' link lets you request an EVAL license. Follow the screenshots listed on the plugin page

...

Versions above 1.5.x support dual licensing.  This means that:

  1. Marketplace licenses (obtained via the Marketplace) can be installed directly 

    Image RemovedImage Added
  2. Vendor licenses (obtained from The Plugin People or via the automated checkout process) can be installed via the Configure link (above).  The license entry textbox is lower down, scroll down to locate.

    Image RemovedImage Added

Keyboard Shortcut

...

A global keyboard shortcut is available for SU, to see available shortcuts press ?, to trigger the SU prompt, press the combination g + u, then you will get:

User Prompt

User Selection

Ready to Submit

Image ModifiedImage ModifiedImage Modified

Controlling Access

@since JSU 1.5.5

...

The default behaviour is that System admins and JIRA admins are able to SU, access may also be granted to nominated groups (note: probably not a good idea to add jira-users into this!):

Default Access

With Delegated Group Access

Image Removed
Image Added
Image Removed
Image Added

SU-Exit

The SU Exit for JIRA SU is accessed via the toolbar, as shown below:Image Removed

...

Logging

With SU v1.8.3 (Jira 7.10.x), its now also possible to log out SU activity, to track common SU related actions (SU to userX, SU exit, history retention changes, manual purge etc).

Add the following to your JIRA_HOME/WEB-INF/classes/log4j.proprties file, it will then append high level actions to the give files, here, we create 'su.log' specifically to capture this info, but also send a copy to the console and filelog, remove as needed.

No Formatcode
##==========================================
##
## SU logging
##
log4j.appender.SUFileLog=com.atlassian.jira.logging.JiraHomeAppender
log4j.appender.SUFileLog.File=su.log
log4j.appender.SUFileLog.MaxFileSize=20480KB
log4j.appender.SUFileLog.MaxBackupIndex=5
log4j.appender.SUFileLog.layout=org.apache.log4j.PatternLayout
log4j.appender.SUFileLog.layout.ConversionPattern=%d %t %p [%c{4}] %m%n
log4j.appender.SUFileLog.Threshold=INFO
  
#
# add entries for all SU packages
#
log4j.logger.com.javahollic.jira.jsu=INFO, console, filelog, SUFileLog
log4j.additivity.com.javahollic.jira.jsu=false

...

After enabling logging, in 1.8.5+ the following will be seen for SU and SU-Exit actions:

No Formatcode
2018-10-08 14:01:47,710 http-nio-8080-exec-6 INFO [jira.web.action.JiraSUAction] SU Complete, From [user=admin, name=admin] To [user=test, userName=test]
...
2018-10-08 14:02:11,512 http-nio-8080-exec-12 INFO [jira.web.action.JiraSUExitAction] SU EXIT Complete, From [user=test, name=test] BackTo [user=admin, userName=admin]

...

You can also invoke the SU via the following javascript, contributed by ~eis:

Code Block
javascript:if(window.location.hostname.search(/jira.+/)==-1){alert(%22Jira%20SU:%20URL%20doesn't%20point%20to%20a%20Jira%20system!%22);}else{void(uid=prompt('Jira%20SU%20('+window.location.hostname+')',''));if(uid){window.location.href=%22https://%22+window.location.hostname+%22/secure/admin/user/JiraSU.jspa?name=%22+uid.toLowerCase();};};

...

Code Block
/PREFIX/secure/admin/user/JiraSU.jspa?name=%22+uid.toLowerCase();};};

Version History

TODO

reimplement auditing

1.3.x

?

1.3

Extend to allow 'exit' back to existing system admin user

1.2

Auto redirects to Dashboard on successful SU

1.1

bugfix, make work with /jira type context deployments, required interim 'click here' page to get to the Dashboard, couldn't figure out how to redirect straight there.

1.0

Initial release

Open Issues

None yet.