Versions Compared

Key

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

Name

jira-su-plugin

Version

1.3

Product Versions

5.0+

Author(s)

Unlicensed user

Homepage

this page

Price

Commercial

Plugin Exchange

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

IssueTracking

http://studio.plugins.atlassian.com/browse/JSU

Column

Development Drivers

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

Compatibility

5.x

(tick)

Installation

...

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

Manual Tweak required:

  1. Modify the file /atlassian-jira/secure/admin/user/views/userbrowser.jsp to get a UI 'SU' link. Find the following (around line 187 in JIRA 5.2):

    Code Block
    typexml
    <li><a id="projectroles_link_<ww:property value="name"/>" href="<ww:url page="ViewUserProjectRoles!default.jspa"><ww:param name="'name'" value="name" /><ww:param name="'returnUrl'" value="'UserBrowser.jspa'" /></ww:url>"><ww:text name="'common.words.project.roles'"/></a></li>
    <ww:if test="/remoteUserPermittedToEditSelectedUser(.) == true">
    

...

Jira 3.x - 4.1.x 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>

Jira 4.2

Code Block

   | <a id="su_link_<webwork:property value='name'/>" href="<ww:url page='JiraSU.jspa'><ww:param name="'name'" value='name' /></ww:url>">SU</A>

Jira 4.4+, 5.0 - 5.2

Code Block

   <li><a id="su_link_<webwork:property value='name'/>" href="<ww:url page='JiraSU.jspa'><ww:param name="'name'" value='name' /></ww:url>">SU</A></li>

...

You can also invoke the SU via the following javascript, contributed by Unlicensed user ~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();};};

...