Scroll Office Export Macro

Hello,


First: Sorry for my bad english ;)

i try to create a full automatic export macro. If you Click on it, it should give out an defined export scheme, relating in what space you are. 

Example:

 

Space A --> Export Scheme x

Space B --> Export Scheme y

 

At this moment it looks like this:

 

## @noparams

<ac:macro ac:name="scroll-ignore">

bereichkey=$space.getKey()
#if($bereichkey =="OZBFHyg")
exportschemeid="OZBFHyg-9646AFE7015800470821EDD026BD5CE4"
#else
exportschemeid="WT-9646AFE7015D596A754A0954371E32E2"
#end


</ac:macro>

<div style="background-color:#01A9DB;width: 350px;height: 37px;"><ac:macro ac:name="scroll-ignore"><ac:rich-text-body>
<p><a class="scroll-office-launcher" data-export-scheme-id="exportschemeid" href="#"
<b><center><font color="#FFFFFF"><font size=5><span style="font-family: 'Wingdings 2'">&#54; </span>
</font>Word-Dokument erzeugen</a></font></center></p></b></ac:rich-text-body>
</ac:macro></div>

 

Im not a Programmer, but i think the "exportschemeid" has to be a variable. 

I have no idea how to correct the code. Maybe you can help me. 

0 answers

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

109 views 12 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you