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
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

340 views 2 4
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