Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using the Assets-Confluence macro with wiki markup

Jürgen Müller January 2, 2024

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.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events