...
Description
Excerpt |
---|
|
Checks if the database is available. |
Checks if the database is available. Optionally, it can check also the availability of the results for the SQL passed in as the second parameter.
...
Let's suppose in our examples `TextField` is a custom field text already configured for the current Jira server instance and `TestDB` represents the database resource name configured in the server context. For more details see SQL data sources.
Code Block |
---|
|
TextField=databaseAvailable("TestDB"); //will set 'TextField' value to 'true' |
...
Code Block |
---|
|
TextField=databaseAvailable("InexistentTestDB", "select pname from project");//will set 'TextField' value to 'false', because the database resource does not exist |
Note |
---|
To configure the data source check the SQL data sources configuration chapter. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "system_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|