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 Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

979 views 51 8
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