Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I want to create a button on a Confluence page that fires off some automatic actions for the page.

I want to create a button on a Confluence page (actually on a page template) that does a few things:

1) Fire off an email to a predefined list of users, or users in a group or emails not associated with a user. Ideally the email would include a pdf of the page, but a link would be just as acceptable. Even just hooking into the built in share feature would be nice.

2) Restrict the page for future editing to one user, like the creator or an admin

This is for our daily standups. Once the standup is complete and everyone has their stuff in, a designated person would click this button and it would perform the actions needed like notify the correct person and freeze the page.

Is any of this stuff doable via API calls? Could I call the API from some js in an HTML macro? Or is there an easier way?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

Use the Run macro to put a form with a button on it. Inside the body of the macro you will need to:

  1. Use a script (see Scripting for Confluence) to do the email.
  2. Use the CLI Macro and the removePermissions action. Use the Pre-defined variables from the run macro for the space key and page title, or page id to use on the actions.
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you