0.1.3 • Published 7 years ago
leitstand-jira v0.1.3
leitstand-jira
JIRA plugin for Leitstand
Installation
First, install leitstand-cli, if you haven't done yet. Then install the plugin as dependency into your Leitstand app via:
npm install leitstand-jira --save
Usage
// Creates a widget for displaying the overall open issues count,
// may vary with your API user's permissions
// Consider using e.g. yargs, to pass credentials to the script, instead of storing them in git
leitstand
.plugin('jira', {
settings: {
host: '<HOST>',
basic_auth: {
username: '<USERNAME>',
password: '<PASSWORD>'
}
}
})
.widget('open-jira-issues', {
plugin: 'jira',
methods: {
name: 'search.search',
opts: {
jql: 'status in (Open, "In Progress")',
maxResults: 0
}
},
filter: function(values) {
return {
open: values.total
};
}
});
API
License
MIT © Sebastian Krüger