Versions Compared

Key

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

This is the home of the JIRA SU Plugin space.

To help you on your way, we've inserted some of our favourite macros on this home page. As you start creating pages, adding news items and commenting you'll see the macros below fill up with all the activity in your space.

...

Column
width60%
Recent updates

...

width5%

...

width35%

...

Navigate space

...

Page Tree Search

...

Name

jira-su-plugin

Version

1.2

Product Versions

3.x - 4.x

Author(s)

~javahollic

Homepage

this page

Price

Free, but you can Image Added

License

Apache 2.0

Plugin Exchange

https://plugins.atlassian.com/plugin/details/5043

IssueTracking

http://developer.atlassian.com/jira/browse/JSU

Download JAR

1.2 (all)

Download Source

1.2 jar, Fisheye

Development Drivers

Excerpt

As a system admin 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

Compatibility

4.0rc1

(tick)

3.13.x

(tick)

Installation

  1. Copy the JAR to your WEB-INF/lib folder.
  2. Modify the file /secure/admin/user/views/userbrowser.jsp to get a UI 'SU' link. Find the following:
    Code Block
    typexml
        <a id="projectroles_link_<webwork:property value="name"/>" href="<webwork:url page="ViewUserProjectRoles!default.jspa"><webwork:param name="'name'" value="name" /><webwork:param name="'returnUrl'" value="'UserBrowser.jspa'" /></webwork:url>"><webwork:text name="'common.words.project.roles'"/></a>
    
    Add the following beneath it:
    Code Block
    
       | <a id="su_link_<webwork:property value="name"/>" href="<webwork:url page="JiraSU.jspa"><webwork:param name="'name'" value="name" /></webwork:url>">SU</A>
    

Usage

Once installed, as a system administrator, go to the User Browser, you will find a SU link in the Operations column. Clicking SU will reset who you are to the given user, and return you to the Dashboard.

Alternate usage (no install needed)

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();};};

(info) If your Jira isn't deployed to / you will need to update the url with the prefix:

Code Block

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

Version History

?

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.

Screenshots

Image Added