Add restrictions when creating a blog post using the html macro

In a html macro following code will put a button on a Confluence page to create a blog post:

<button class="create-dialog-create-button aui-button aui-button-primary" tabindex="100" onclick="javascript&colon;location.href='/wiki/pages/createblogpost.action?spaceKey=SPACE_KEY';">Create Blog</button>

Can I add some extra code so that the blog post created is restricted to group my_group?

1 answer

0 votes
Ann Worley Atlassian Team Jan 11, 2018

We cannot add restrictions to pages using HTML but we may be able to come up with a workaround that will satisfy your use case.

I am guessing you want the blog posts restricted to one group so they can review the blogs before publicly publishing them. In that case you could use the same button but with createpage.action? which will create the page as a child of the designated space's landing page. You could apply view restrictions to that landing page, which would be inherited by all the child pages. When the blog is ready for prime time, it could be re-published as a blog. You could have a space dedicated just to reviewing blog posts.

If my guess is wrong about your use case, please let me know more and I will research further.

Hi Ann,

Thanks for your answer.

Our use case: we have a departemental space that is now restricted to our team. We want to open the space for the whole company, but do not want that everyone can see our internal blog posts.

Therefor we would need a way to create a blog post restricted to our team, preferrably automatically so that setting restrictions is not forgotten.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,209 views 2 13
Read article

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