Import source files from directory
eazyBI for Jira
eazyBI for Confluence
Private eazyBI
On eazyBI for Jira and Confluence Data Center
You can perform automatic source file import from a directory on the Jira or Confluence server.
Create a directory on the server for automatic file import (this directory is not present by default). If the Data Center has cluster nodes, the file upload directory should be in the shared Jira home directory (or shared Confluence home directory) so it is accessible to all nodes. Then create a sub-directory for each account you plan to upload files to, naming it with the account ID.
- For Jira:
JIRA_HOME/data/eazybi/custom/import/account_ID - For Confluence:
CONFLUENCE_HOME/data/eazybi/custom/import/account_ID
Then you can copy CSV and Excel files into these folders and eazyBI will upload and import them into the specified account. eazyBI will replace the existing file if it has the same name. After automatic file upload, eazyBI will perform an automatic import if the mapping for the file is specified or eazyBI can pick a mapping from another file with the exact same data structure.
eazyBI would import files automatically every 10 minutes. If the data file in the directory is uploaded at the same time as the closest import is scheduled, it will be included in the next import session to avoid partially uploaded files.
On Private eazyBI
If you would like to set up automatic source file import from Private eazyBI server directory, then in Private eazyBI main directory, create an additional directory import and then create sub-directories for each account using account_id as directory name (e.g., for first eazyBI account, create a directory import/1).
Then in eazybi.toml file add automatic file import job and specify how frequently it should check import directories (see example in eazybi.toml.sample file):
[[regular_jobs]] job = "SourceFile::AutomaticImporter.start_automatic_file_import" every = "10m" # or you can specify more complex schedule using cron syntax # cron = "*/10 * * * *"
After these changes, restart Private eazyBI server, and now it will be checking import directory, sub-directories, and will automatically import files that will be copied into these directories.