Hello,
I would like to retrieve assets from our JIRA instances within a Groovy macro. This allows me to design the query dynamically.
Example with a JIRA macro:
def querynr = ("$query_nr".replaceAll(/[^0-9]/, '') )
def jqls = """
{expand:title=JIRA Issues}
{jira:server=company JIRA||columnIds=issuekey,summary,issuetype,created,updated,assignee,status,resolution|columns=key,summary,type,created,updated,assignee,status,resolution|maximumIssues=20|jqlQuery=project = SD and "Nummer" ~ "$querynr" order by createdDate desc|serverId=xxx-xxx}
{expand}... """
println(jqls)
I get the variable $query_nr through the run plugin, I then assign it to the Groovy variable and can use it in the wikimarkup.
However, confluence does not find the macro if I integrate it like this, for example:
{assets-objects-macro||iql="Nummer = 1345|....}
Does anyone have an idea how I can "find" the macro via wikimarkup?
Thanks in advance.
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.