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 Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

247 views 11 9
Join discussion

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