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

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,147 views 20 14
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