Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

Starting with version 4.15.5 0 we support Webhooks.


Webhooks gives the user the possibility to run existing SIL scripts, from outside of the Jira/Confluence instance, by using a REST/HTTP client, and retrieve the results of the script run.
In order for this to be possible, we need 2 things:

...

To define what URI and HTTP method(s) will be used to invoke a specific SIL script, the SIL Webhooks Configuration should be used. The page is located under Add-ons -> CPRIME PLUGINS CONFIGURATION.

To create a Webhook entry, click the "Add webhook" button.

A screen like the following will appear:

Image Added


Fill the form with the desired Webhook name, the HTTP Method(s) that will be used to trigger this webhook, the path to the desired script to be invoked, and weather or not the invocation should be Synchronous or not.Returns a number representing the duration of the re-index in milliseconds.


Note
titleNOTE

The difference between synchronous and asynchronous is that the asynchronous Webhook SIL call can't return any results or custom HTTP codes to the caller.

This happens because the SIL script run task is added to a list of future tasks to be run, and the HTTP call ends.

With the synchronous option, the call will block until the SIL script run is completed, and the results will be returned to the caller.

...