Connecting to Jira via SQL
You can use SQL to connect to Jira in the Data Virtuality Studio or the Code Editor in the Web UI.
Pre-requisites
You need the auth username, auth password.
How to Connect
Before you start retrieving data, you need to run the connector script for Jira in the Data Virtuality Studio or the Web UI and input your credentials in the following line:
CALL SYSADMIN.createConnection (
name => 'jira_rest_src'
,jbossCLITemplateName => 'ws'
,connectionOrResourceAdapterProperties => 'EndPoint=https://<EndPoint>/rest/api/3,SecurityType=HTTPBasic,AuthUserName=<AuthUserName>,AuthPassword=<AuthPassword>'
,encryptedProperties => 'AuthPassword=<AuthPassword>'
);;
CALL SYSADMIN.createDataSource (
name => 'jira_rest_src'
,translator => 'jira_rest'
,modelProperties => 'cleanupMethod=<cleanupMethod>'
,encryptedModelProperties => ''
,translatorProperties => ''
,encryptedTranslatorProperties => ''
);;
You can also setup data source parameter cleanupMethod
(it can have one of two values: DELETE
or DROP
) that will be used for cleaning up tables in storage when the target_table
parameter is used for the procedures that support it.
Ensure the user account used for connecting to JIRA server has proper access rights. Endpoints of REST API may require proper access rights of the requesting user account.