jira-to-csv
v0.1.0
Published
Export JIRA Issues to a CSV
Downloads
12
Maintainers
Readme
jira-to-csv
export JIRA issues to a CSV file
features
- custom fields
- pagination
- plugins
install
npm install jira-to-csv
supported plugins
- servicedesk-lingo-integration-plugin
- timeinstatus
usage
const fs = require("node:fs");
const jiraToCsv = require("jira-to-csv");
const { csv } = jiraToCsv.export_issues({
// required parameters
domain: "https://example.atlassian.net",
project: "ABC",
api_token: "71236DSFg6gq566D123u67",
user_email: "[email protected]",
// optional parameters below
debug_level: 10,
// custom jql (can only be specified if project parameter above is undefined)
jql: "...",
// only write each column if it actually contains values. default is false
skipEmptyColumns: true,
// how many mimilliseconds to wait between requests
wait: 50,
// split time in status information across multiple columns
// each status has two columns: count and duration
expand_time_in_status: true,
// set maximum length of issue description
// overflow is replaced by "..."
max_description_length: 100,
// enable experimental memory optimization
// uses memory-optimizer internally to replace
// duplicate values in issue fields with
// multiple references to the same object
optimize_memory: true
});
fs.writeFileSync("./issues.csv", csv);