External Database Connection
External database connections are used to connect to any database.
There are two types of database connections:
- External: Used to connect to any database, such as your sales or contacts database.
- Local: Connects to the current database your Atlassian application is using.
The Resources page lists all previously configured database connections.
To set up a connection to an external database, you need to know the following information for the database:
- The JDBC URL
- Any required credential information (username and password)
- The driver class
Tip: Your database administrator should be able to provide this information if you are unsure.
To set up an external database connection and make the database available to scripts:
Other Drivers
Tip: If you need to use another database driver (like an Excel or CSV driver), copy it into the tomcat lib directory of your installation and restart. For example, this could be
/opt/<application>/lib/.You might want to use these to create a custom field that allows users to pick from a row in a spreadsheet.
In the example shown below, we are using a CSV driver. This makes available all CSV in the directory provided in the JDBC URL. So in /tmp, we have a CSV file called devs.csv.