We are exporting JIRA issues in an xml format, to be able to process it with XSLT afterwards.
However, we would need the user exporting the data to be included in the xml export.
We tried several options, but none seem to work:
<currentUser>$!{Username}</currentUser> <currentUser1>$currentUser</currentUser1> <currentUser2>$!{currentUser}</currentUser2> <currentUser3>currentUser()</currentUser3> <currentUser4><![CDATA[(User)ActionContext.getSession().get(DefaultAuthenticator.LOGGED_IN_KEY);]]></currentUser4> <currentUser5>#xmlEscape($currentUser)</currentUser5> <currentUser6>javascript:user()</currentUser6> <currentUser7><![CDATA[javascript:user()]]></currentUser7>
How should we adapt the searchrequest-xml-header.vm file to include the current user exporting?
Thank you very much for your answer.
Community moderators have prevented the ability to post new answers.
Try this:
<currentUser>$!{authcontext.getUser().getName()}</currentUser>
This comment lists the available objects in the velocity context. It might be helpful as a reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.