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&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