To the best of my knowledge, I can only use the JIRA Issue/Filter macro in confluence to provide a link to a JIRA item or show a table with search results (and select the fields). For my application I would like to show a single field from a single selected JIRA item and NOT show it in tabular form. For example, I would like to show the due date for a JIRA issue in a Confluence table.
Any clues? Any third party macros?
I quickly hacked together some JS to solve this issue for me and turned it into a user macro:
<script> AJS.toInit(function(){ setTimeout(function(){ AJS.$(".jira-table").each( function() { if (AJS.$(this).find( "td" ).length == 1) { var text = AJS.$(this).find(AJS.$("td.jira-macro-table-underline-pdfexport")).text(); AJS.$(this).html(text); } }); }, 500); }); </script>
Dirty hack, I used CSS to remove the other columns from 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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have only used CA Issues Macro for this – https://marketplace.atlassian.com/plugins/com.capitaladdons.confluence.plugin.macro.ca-jira-confluence-issue-macro/server/overview
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.