Versions Compared

Key

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

The run macro editor makes it easy for you to configure all the fields with the help of an organized form editor. This interactive editor provides an interface with all the fields logically grouped into the following tabs:

...

Table plus


TabsMacro Editor LabelDefaultDescriptionMacro Parameter
Field settings
(No tabs)Form rowsblank (no fields defined)

Click +Add my first field to add the field to the form. 

Define the values of the fields by adding the elements group-wise and field-wise in the editor. See Field types to learn more about the available fields. All the fields from this tab combinedly define the replace parameter. Click Add field or Add field group to add another element to the form. Avoid some reserved Confluence values like: pageId, spaceKey, title, wikiMarkup, xHtml.

Click the ellipsis (...) next to each field for more actions like adding fields above or below, copying fields, moving the fields up and down etc...

replace
Display settings
Form displayForm titleblankText that appears as the first row of the field table. Line breaks with leading space ( <br>) and required spaces (&nbsp;) are supported.heading
Form widthblankWidth of the field table in percent(%) or pixels.width
Text field size95% table widthUnless overridden by field specific parameters - see Field types.inputSize
Help page@selfA page reference by title, spacekey:title or @self, @parent, @home. Used as the target page for help links. If this is specified and is a valid and authorized page reference, a help icon will appear at the top right of the parameter area that links to the help page. In addition, any parameter whose description begins with ? will generate a help icon and link to an anchor on the page specified. The anchor will be identified by the replacement field key. A link to a anchor not defined on the help page will show the top of the help page.help
Field displayShow form fields On
hideParameters
Show group header on formOff
hideColumnHeadings
Show more fields by defaultOffNormally more fields are hidden until the more icon is pressed.showMore
Focused field
Name of an input field to receive focus when the page is initially displayed to allow typing or selection immediately. Themes or other page content may override this setting. It may also be browser dependent.focus
ButtonsShow run buttonOff
hideRun
Run button textRun or translation
titleRun
Show a reset buttonOffA reset button allows users to return fields to their initial values

The Reset button allows the user to reset all the field values. The values are reset based on the occurrence of the RUN action.

  • If you click the Reset button and the RUN action has previously not occurred, it clears all the fields, and the field values get reset to default values.
  • If you click the Reset button and the RUN action has previously occurred, all the field values get reset to the entries provided for the latest RUN execution.
showReset
Reset button textReset or translation
titleReset
Show export buttonOn
hideExport
Export button textExport or translationThe exportFile parameter is required before the export button will show.titleExport
Text before Run and Export buttonsBlankText that appears just prior to the run or export buttons. Line breaks with leading space ( <br>) and required spaces (&nbsp;) are supported.prompt
Button padding4In pixels.buttonPadding
AdvancedAllow HTML renderingOffSince 4.4. Allows HTML in parameter descriptions. Use may be restricted by the administrator. This is controlled by Macro Security for Confluence.disableAntiXss
Show field key in formOffCan be useful for testing.showKey
Velocity include reference
For advanced customization of the display of the parameter input table. This requires velocity programming and Confluence system administrator privileges to add and update the customized velocity file. This is a velocity include reference relative to the Confluence web app and replaces the table portion of the velocity file embedded in the add-on.parameterInput
Run settings
ParametersUnique form idautomatically generated numeric idUsed for url request parameters.id
Request parameter default@defaultDefault is run_id_ where id is the value of the id parameter. The prefix is appended with the parameter name to form the request parameter key on the url. Use @blank to have a blank prefix.requestPrefix
Keep request parametersOffTurn this toggle On to keep existing request parameters on the url after button is pressed. Normally used for recursive use or when there are multiple run commands on the same page so that the results of one run macro are retained when the second is run. All requests parameters will be retained if keepRequestIds is not specified. Otherwise, non-run macro request parameters and those references by the keepRequestIds parameter will be retained.keepRequestParameters
Keep specific request parameters by id
Comma separated list of run macro ids whose request parameters should be retained on the url after button is pressed. Use of this parameter or keepRequestParameters parameter is required for recursive use of this macro.keepRequestIds
Request parameter key for the action
Default is run_id where id is the value of the id parameter. This represents the request parameter key for the action to perform (run or export).requestAction
Suppress quoting of multi-select valuesOffMulti-select field types replace as a comma separated list of single quoted strings. Turn this toggle On to remove the quotes.suppressQuote
ProcessingRun on page loadOffTurn this toggle On to automatically render the macro body with the default field values.autoRun
Set focus to this page anchor
Name of a page anchor on the current page used to position after button press. Normally, the anchor would be placed before the run macro or at the top of the run macro body so that the results are shown at the top of the page. If there are parameter validation conditions, errors from user input may not be visible if the anchor is after the form.anchor
Date format for $current_timesystem defaultSee Date Format for how to specify this value.dateFormat
ExportExport on page load OffTurn this toggle On to automatically render the macro body with the default field values and export to the exportFile if specified.autoExport
Name of export file

Location of the partial html file that will be created on export representing the rendered macro body. For export to an attachment, the user must be authorized to add attachments to the page specified. Replacement variables are allowed.

  • ^attachment - The rendered html is exported as an attachment to the current page.
  • page^attachment - The rendered html is exported as an attachment to the page name provided.
  • space:page^attachment - The rendered html exported as an attachment to the page name provided in the space indicated.
  • filename - The rendered html is exported as a file located in confluence home directory/script/filename. Subdirectories can be specified.
exportFile
Text in front of the export file fieldName: or translationThis will only be shown if the exportFile parameter value starts with a question mark (?).titleExportFile
Encoding for export filesystem default
encoding
Export file versioningnew

Defines the the version mechanism for exported reports.

  • new - Creates a new version of the attachment. For file based exports new has the same effect as keep.
  • replace - Replace (overwrites) existing file and, for attachments, removes all previous versions! To replace an existing attachment, the user must be authorized to remove attachments for the page specified.
  • keep - Only creates an new export if an existing export of the same name does not exist. An existing attachment will not be changed and an existing file will not be updated.
exportVersion
Attachment comment
The comment will be used for an exported attachment. If it begins with a question mark (?), then an entry field with this value will appear next to the export button. Replacement variables are allowed.attachmentComment
Attachment comment prefixComment: or translationThis will only be shown if the attachmentComment parameter value starts with a question mark (?).titleAttachmentComment


...