How to implement a ScriptRunner Action on your website
The ScriptRunner portal offers the possibility to display a specific action, defined by the ID
of the action, as a detached element. This view can then be integrated into any website via an iFrame. The login procedure as well as the handling of licenses does not differ from the
usual login at the portal.
The URI required for the integration can be generated directly at the desired action in the portal with the Widget Link button.
Example URI for integrating an Action with the ID 25:
This URI can now be used for embedding in an iFrame:
<div class="row justify-content-md-center">
To control the included action, various parameters can be passed in the URI. Standard parameters are:
The description of the Action is hidden
The name of the Action is hidden
The language of the Action is passed (en/de)
Example with all three standard parameters:
In addition, it is possible to assign values to simple string parameters of the action. This is currently only possible with string parameters that result in a TextBox. Parameters with the following structure must be included in the URI:
Example with the parameter "test" is preassigned with the value "Hello":
The action displayed in the portal widget can be customized via the widget.css file (found in the installation folder of the ScriptRunner portal), independently of the display in the portal.
For example, the colours of elements can be changed and adapted to the surrounding website. Some example classes are listed in the widget.css file.