Forums

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

Creating a confluence template with macro's that use a user macro

maarten breesnee
Contributor
July 12, 2019 edited

I am looking for an option to create a confluence template that if it pops up it will ask for a version key (so not a name) and when you fill that it it will generate a page with a title (release notes #versionname#) a pie chart based on issues of that release sorted by issuetype and a list of all the issues belonging to that version)

 

I think I need to create a user macro. So I did create something but I can't let it work that 2 macro's in that user-macro.  And I am also struggling with prefilling that title.

 

This is what I created so far

## Macro title: Release

## Show the issues for a release

## @Param ProjectKey:title=Project Key|type=string|required=true|desc=e.g. AF010

## @Param Version:title=Version|type=string|required=true|desc=e.g. 1.1.1


#set($projectKey = $paramProjectKey)

#set($version = $paramVersion)


#set($jiraBaseUrl = "base url filled in")


<ac:macro ac:name="jiraissues">

<ac:parameter ac:name="title">$!{projectKey}: Release $!{version}</ac:parameter>

<ac:parameter ac:name="url">$!{jiraBaseUrl}/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+$!{projectKey}+AND+fixVersion+%3D+%22$!{version}%22&amp;tempMax=1000</ac:parameter>

 

Can somebody please help me?

So when I use a create from template I get a basic form where I fill in my project key and release key or name and it fills below mentioned draft. So title must be something like Releasenotes $versionname

the piecharts should contain the information of that release based on the named metrics

and an issuelist of all issues in that version

draft.PNG

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events