As an administrator, you can set up Form IDs which can be used when creating forms, helping to simplify the creation and use of forms. Form ID's are reusable and editable, making it easier when you want to bulk edit the behaviour of several forms.
Form ID's are created in the Form administration section and provide a number of benefits such as:-
It's not necessary to use Form ID's and you can set a direct destinations in the Forms for Confluence macro, however the Form ID is a powerful mechanism used to administer and manage the use of Forms for Confluence more easily and is a good option when creating forms that are designed to be more permanent.
Form ID's can be configured to use either the Internal Database , with all responses to a form being sent to the Internal Database against the Form ID or be configured to send out responses to specific email addresses.
Form ID's with the collector type set to "Email Relay" will send responses to a form to an email address
Form ID's with the collector type set to "Internal Database" will store responses from a form in the Forms for Confluence Internal Database. Responses can be viewed, managed and exported directly in Confluence.
Complete the Form ID Config form
4.1 Provide a unique ID/name used to identify the Form ID configuration
4.2 Set collector type to "Internal Database"
4.3 Select Form Response Macro Permission
4.4 Select Notifications
Notification preference is personal to the user editing the form configuration, and will not influence other users notification preferences. Notifications may be disabled for the user editing the form configutation.
4.5 Check/Uncheck "Single Submission" option as you preferred.
4.6 Check "Submission Override" if you want to allow the user to override his submission.
4.7 Provide a brief description
4.8 Provide a success message to be displayed to senders after having submitted their form
Complete the Form ID Configuration section.
3.1 Provide a unique ID/name used to identify the Form ID configuration.
3.2 Set destination type to "ScriptRunner for JIRA".
3.3 Check/Uncheck "Single Submission" option as you preferred
3.4 Check/Uncheck "Submission Override" option as you preferred
3.5 Select the JIRA Application Link that will be associated with the Form Id. A ill be shown in the drop down list. See the Atlassian documentation for instructions on setting up an application link between Confluence and Jira.
3.6 The ScriptRunner endpoint identifies the specific endpoint configured using ScriptRunner REST endpoints in JIRA. This is simply the exact point to where the form will be sent. The ScriptRunner REST endpoint will be responsible for processing the submitted form. One form can be submitted to multiple JIRA instances, and each JIRA instance can have several endpoints. See the ScriptRunner documentation for setting up a REST endpoint.
Placeholders for Info Html
"Info Html" in ScriptRunner Form Configuration is customisable and at present Info Html supports the following placeholders:
$endpoint: Input value of the "ScriptRunner Endpoint" text box.
$formID: Input value of the "Form ID" text box.
$response: Received response of a successful call.