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

Retrieve "Script Macro" list with a program

Hi there,

is there a possibility to get the information included in the Scriptrunner for Confluence "Script Macros" page programatically (something like a REST-Service, a database query, a file, ...)

I need a list of the script file names in another script.

Thanks for ideas!


1 answer

0 votes

Hello there Karsten!

Thanks for reaching out. As I understand, you need to fetch some information about third-party macros from Adaptavist Scriptrunner. You could check the page storage format and see if the needed information is there:

Confluser Server | Storage Format

You should be able to fetch this using REST API:

Confluence Server | REST API

Further, could you provide us some clarification on:

  1. Is the information needed within a specific macro from the Scriptrunner bundle?
  2. What is the name of said macro?

Looking forward to your answers so we can keep moving Karsten!

Hi Diego, 

thanks for the idea; however I don't this is going to work. I am familiar with the Storage Format and the regular REST API for Confluence. In this case though I am trying to retrieve information that ist displayed on the "Script Macros" admin page of the Scriptrunner for Confluence plugin. As this is not a regular Confluence page I do not know how to gather the information displayed (name of the macro, name of the script file) with a groovy script.

My final aim is to track the usage of script files in the differen "Script Macros" 


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Introducing Confluence Cloud and Jira Software Cloud Premium

Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...

727 views 8 18
Read article

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