Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Neil July 23, 2014

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

1 vote
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2014

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
AUG Leaders

Atlassian Community Events