Hi all,
I'm trying to create a new user macro to achieve following:
- It asks a JIRA issue id as a parameter.
- It includes the given JIRA issue into the page as table
- Column list of JIRA issue is fixed (e.g. key, summary, description)
- It adds some extra formatting (CSS code) to the table.
My user macro includes the jiraissues macro.
If I include only one JIRA issue into a page, then my macro works fine. But if I try to include more instances of my macro (more jira issues) into the same page, then only the very first JIRA issue is included and it is repeated many times.
Here is the source of my user macro:
## Macro title: BRS JIRA követelmény
## Macro has a body: N
## Body processing: Rendered
## Output: XHTML
##
## Developed by: Pecsenye László
## Date created: 30/07/2019
## @param reqId:title=JIRA Req ID|type=string|required=true|desc=JIRA Req ID
<style>
.brs-jira-req .jira-issues table tbody tr th {
display: none;
}
.brs-jira-req .jira-issues table tbody tr.rowNormal td.jira-macro-table-underline-pdfexport {
display: inline-block;
}
</style>
<div class="brs-jira-req">
<ac:structured-macro ac:name="jiraissues" ac:schema-version="1" ac:macro-id="$!paramreqId">
<ac:parameter ac:name="url">http://localhost:8080/browse/?jql=key = $!paramreqId</ac:parameter>
<ac:parameter ac:name="columns">key;summary;description</ac:parameter>
<ac:parameter ac:name="renderMode">static</ac:parameter>
</ac:structured-macro>
</div>
Any ideas?
Thanks in advance,
LAci