Setting page property via drop down in a user macro

Hi there! 

I am trying to set a page property by using a user macro. I tested several approaches shown here in the forum but none did work.

The case: This drop down should set the page property that will be used in K15 pdf exporter.

## Macro title: My tiny title
## Macro has a body: N
## Output: String so far
##
## Developed by: me
## Date created:01/22/2018
## Installed by: me
## Copyright: none
## @param Doctype:title=Doctype|type=enum|desc=Please choose.|enumValues=Option 1,Option 2, Option 3|required=true

$paramDoctype

Now I want to set the $paramDoctype as page property "DocumentType". 

Is that possible by using a user macro? How?

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

692 views 21 12
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