The goal is to build a Confluence page from a template. This template uses a variable that will contain on JIRA issue key. We use a user macro that passes that key as part of a JQL query to the regular JIRA macro. The result is as usual wrapped in a table.
Now I wonder if you know any possibility to retrieve just one field value and return it to Confluence without any markup around, so e.g. it can be used in floating text.
My attempt to find an answer even by excessive googling so far was unsuccessful. So if you can share resources that clarify my issue, please feel free to do so.
This is not possible out of the box. There are some add-ons that accomplish this, such as this one.
Using this add-on, is this possible to get Jira "Components" system field and it's values return it to Confluence page e.g. it can be used in floating text?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I hacked together some code quickly to resolve this issue (I created a user macro for it):
<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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
what it doesn, means is it possible to get Jira "Components" system field and it's values return it to Confluence page for users selection using this User Macro - please confirm.
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.