On this page:
Table of Contents | ||
---|---|---|
|
...
...
...
...
...
...
...
...
Starting with versions 2.0.8 and 2.6.1 we have improved the screen, so now all you have to do to add an input on the screen is call the respective routine for that input type. No more adding to a huge array and returning it. Note that returning the array will revert to using the old method which does not support newer input types.
...
...
Available in v2.0.8 for Jira 5 and v2.6.1 for Jira 6 and above
Creating the screen (up to v2.0.7 for Jira 5 and 2.6.0 for Jira 6)
Warning | ||
---|---|---|
| ||
This method of creating the screen is deprecated starting with version 2.0.8 for Jira 5 and 2.6.1 for Jira 6. New input types added in versions 2.0.8+ and 2.6.1+ will not work using this method. |
The script must return an array of strings, containing parameters for each field that should be displayed. The array will be built from concatenated sub-lists, each of which will describe a field to be shown on the screen. However, if the script does not return a value or the value is empty, no screen will be shown.
To help create the string array that needs to be returned, we have created some app-specific SIL routines with a user-friendly syntax that will return a sub-list for each field.
...
label : string
defaultValue: string
isDisabled : boolean
...
label : string
defaultValue: string
isDisabled : boolean
rows: number. An optional parameter to specify how tall the text area should be, in lines.
If not specified, the default will be "3".
...
BA_createSingleCheckbox(label, isSelected, isDisabled)
...
label : string
isSelected: boolean
isDisabled : boolean
...
label: string
isDisabled : boolean
...
label : string
options: string []
defaultValue: string (must match one of the options or empty string)
isDisabled : boolean
...
label : string
options: string []
defaults: string [] (must match some of the options or empty array)
isDisabled : boolean
...
Note | ||
---|---|---|
| ||
Be sure to gather all sub-lists into a single array and return it at the end of the script. |
Examples (up to v2.0.7 for Jira 5 and 2.6.0 for Jira 6)
...
...
The above script will create one input of each type on the following screen.
Examples (v2.0.8+ for Jira 5 and 2.6.1+ for Jira 6)
...
title | Example screen script |
---|
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...