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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.