The first time a request is made, required information will be loaded from
runtime config files (cwd/.jira-queryrc or ~/.jira-queryrc). If any info is
missing, the user will be prompted to provide it.
Runtime Config
{
"jira-url":"https://jira.whatever.com",
"username":"mister.potato",
"password":"correcthorsebatterystaple"
}
Manual Config
To provide the configurations directly...
jiraQuery.config({
'jira-url':'https://jira.whatever.com',
username:'mister.potato',
password:'correcthorsebatterystaple',
});
Queries
getMyIssues
Get issues for the current user.
jiraQuery.getMyIssues().then(issues=>{
issues.map(issue=>console.log(issue.key))
});
getMyOpenIssues
Get open issues for the current user.