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, atlassian community, job interviews, interview tips, career advice, interview preparation, job search, interview experiences, hiring process, atlassian careers, community discussion, interview best practices

Interview Tips & Pet Peeves ✍️

Join the discussion on interview best practices and common pitfalls. Share your experiences and learn from others in the Atlassian Community.

Share you experiences!
AUG Leaders

Atlassian Community Events