Hello Everyone. Thank you in advance for taking the time to read this and hopefully provide me with assistance.
I have a project that i want to accomplish with JIra and Confluence. Here is what i'd like to accomplish. I want to be able to pull all the various field of a jira ticket into a confluence page individually ( i'll be using this page as a template )
So my plan is tho have a column as shown below with specific field
Issue Key || <Populate issue key>
Project name || <populate project name>
Summary || <populate summary.
Here is where my problem is. Currently i have a custom written macro that allows me to pull these field individually based on an issue filter ( key, jql, url).
What i'd like to happen is that all the user has to do is fill in the issue key or url somewhere on the page and have these field and whatever other field i set on the page to auto-populate without having to insert a new macro each time for each field.
I hope i provided enough details. Let me know if additional clarification is needed.
Below is the custom macro i am currently using
## @param Filter:title=Jira Filter|type=string|required=true|desc=Search by any key, by URL, Jira link, JQL, plain text or filter
## @param Columns:title=Column(s)|type=string|required=true|desc=Jira fields separated by commas.
#set ( $filterClass = "jflp")
<div class="$filterClass">
<ac:structured-macro ac:name="jira" ac:schema-version="1">
<ac:parameter ac:name="columns">$paramColumns</ac:parameter>
<ac:parameter ac:name="maximumIssues">20</ac:parameter>
<ac:parameter ac:name="jqlQuery">$paramFilter</ac:parameter>
</ac:structured-macro>
<div>
<script type="text/javascript">
AJS.toInit(function ($){
setTimeout(function () {
$("div.$filterClass div.jira-table .refresh-issues-bottom").remove();
$("div.$filterClass th.jira-macro-table-underline-pdfexport").remove();
$("div.$filterClass .jira-issues table.aui tbody tr").css("border-bottom","none");
$("div.$filterClass .jira-issues table.aui tbody tr td").css("padding","0");
}, 1000);
});
</script>