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 yesterday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

155 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