Scriptrunner - how to add custom web items to the "Insert more content" menu in edit mode

KMTek
Contributor
December 16, 2022

Hi,

It was requested to us long time ago to add two items in the "Insert more content" menu:

  1. A simple link that leads the user to an external site where they will be able to retrieve the links corresponding to certain files, and copy them afterwards to the Wiki page 
  2. A custom action that executes a user macro

We did this in the past using JS, but after the upgrade to 7.13 the page is no longer refreshed when editing it, and the script no longer runs. Only if we manually refresh the page when in edit mode.

We have been using Scriptrunner to try to add these items but no luck so far.

We are able to add the item corresponding to the custom action in the list, but we are unable to link it to the macro itself.

And we would like to add the simple link in the beginning of the list but apparently is not possible. We have tried to place it as a button in the system.editor.percursor.buttons section but when we click it nothing happens.

This said, does anyone have an idea how to:

  1. Make a simple web item with a link work when added to the system.editor.percursor.buttons (and add an icon to that button because it is empty)?
  2. Link the web item added to the system.editor.featured.macros.default to an existing macro and make it work?

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events