The question was also asked here
With Javasacript l can only problem is will this work when for example l want the content as PDF because l need to use the current displayed URL in a condition in a user macro
Where? In a user macro? In a macro or plugin? In JavaScript on the page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can get using javascript
var pathname = window.location.pathname;
check this
http://stackoverflow.com/questions/406192/how-to-get-the-current-url-in-javascript
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With Javasacript l can only problem is will this work when for example l want the content as PDF because l need to use the current displayed URL in a condition in a user macro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For JIRA sometimes (from Custom Field, Tabs, ect) you can use:
public static String getBaseUrl() { HttpServletRequest req = JiraWebUtils.getHttpRequest(); return req.getScheme().concat("://").concat(req.getServerName()).concat(":").concat(Integer.toString(req.getServerPort())).concat(req.getContextPath()); }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.