I have some parts of my plugin which are loaded through AJAX on demand. Now there is a problem that although my velocity template for that command does not contain html head nor body tags, still JIRA inserts them automatically when I request it from http://localhost:2990/jira/secure/MyAction!myCommand.jspa?_=1386174672969.
How do I return only HTML structure from my own .vm view and stop JIRA from injecting its headers and body?
Thanks you brought me on the right way, I think
<meta name="decorator" content="none">
i what you are looking for.
After some inspection on default JIRA pages as workaround I did it like this:
<html> <head> <!-- the following must be present to keep the partial view only. at first I tried atl.popup as suggested in the docs, but it did not work --> <meta name="decorator" content="dialog"> </head> <body> ...
The response is now clear from head tags and whatnot, but there are some other lines added:
<div class="jira-dialog-content"> <div class="dialog-title hidden"></div>
which is not a big deal - I can filter them client side with some jQuery.
Still, I'm not sure that's the "official" way to achieve the desired behavior...
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.