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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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