HAPI

Visit ScriptRunner HQ to find out more about HAPI. 

What is HAPI?

HAPI is an API (application programming interface) for doing common tasks in Confluence, including adding labels, creating pages, deactivating users, and much more! HAPI is a programming language but it is not a new programming language, it is plain Groovy. It's a simpler alternative to Confluence's regular API. 

Visit ScriptRunner HQ to find out more about HAPI.

ScriptRunner HQ

Check out our HAPI walkthrough video for a demonstration of how to use HAPI.

Walkthrough Video

Who is HAPI for?

Everyone. Whether you're a complete beginner or an experienced developer, HAPI is for you and your business. HAPI increases productivity and efficiency by allowing you to create automations and customizations faster than ever.

For example, look how simple the HAPI script is for deactivating a user:

Users.getByName('USERNAME').deactivate()

Why?

We want all users to be able to script in ScriptRunner, not just those who are familiar with Confluence API. We want the barrier to entry to be next to nothing, and we think HAPI achieves that. 

What else should you know?

Completions

When using HAPI you'll notice helpful completions. We've developed completions to make your scripting experience even easier. For example, you don't have to remember or search for project keys; HAPI provides you with a list of project keys. The same goes for many other options you previously had to search for or remember. Give HAPI a go and see how many helpful completions there are! 

Keyboard shortcut

You will find the keyboard shortcut Control + Space very useful when using HAPI. This shortcut allows you to display completions when they disappear. There are a number of reasons you could want to display completions. For example:

  • You’ve started typing and selected the wrong value, so you go back and delete some text and completions no longer display.
  • You’ve clicked out of the script console and when you return, completions no longer display.
  • You’ve deleted a chosen option in a string and want to see what all of the options were again.

We also list more keyboard shortcuts within ScriptRunner. You can find these in the script console in the Documentation and Tips section.

Compatibility

HAPI is compatible with all Confluence versions listed on the marketplace for ScriptRunner for Confluence and can be used in any existing scripts.

Javadocs

See our Javadocs for a full list of HAPI classes and API methods.

Latest updates

See our Changelog page for all of the latest updates to HAPI. 

Support

If you notice something missing, let us know.

Have Any Feedback?

Take our short survey and let us know what you think about HAPI!

Take survey

What's Next? 

Create a page with HAPI and see how easy it is to use!

Create a page


On this page