question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jira ls No issues

See original GitHub issue
jira -V
v0.5.4

node -v
v8.16.0

Then, config per steps:

Jira URL: https://co.atlassian.net/
Username: derek@co.co
Password:
Information stored!

Then:

jira ls
No issues
$ jira config

TypeError: callback is not a function
    at Object.setConfig (/Users/liftco/.nvm/versions/node/v8.16.0/lib/node_modules/jira-cmd/lib/auth.js:62:24)
    at Command.<anonymous> (/Users/liftco/.nvm/versions/node/v8.16.0/lib/node_modules/jira-cmd/bin/jira.js:364:22)
    at Command.<anonymous> (/Users/liftco/.nvm/versions/node/v8.16.0/lib/node_modules/jira-cmd/node_modules/commander/index.js:254:8)
    at emitTwo (events.js:126:13)
    at Command.emit (events.js:214:7)
    at Command.parseArgs (/Users/liftco/.nvm/versions/node/v8.16.0/lib/node_modules/jira-cmd/node_modules/commander/index.js:471:12)
    at Command.parse (/Users/liftco/.nvm/versions/node/v8.16.0/lib/node_modules/jira-cmd/node_modules/commander/index.js:378:15)
    at /Users/liftco/.nvm/versions/node/v8.16.0/lib/node_modules/jira-cmd/bin/jira.js:402:13
    at Object.execCb (/Users/liftco/.nvm/versions/node/v8.16.0/lib/node_modules/jira-cmd/node_modules/requirejs/bin/r.js:1941:33)
    at Module.check (/Users/liftco/.nvm/versions/node/v8.16.0/lib/node_modules/jira-cmd/node_modules/requirejs/bin/r.js:1116:51)

Previously (yesterday), this was working fine. I even uninstalled via npm and rm -rf ~/.jira/config.json. Same results, No issues.

It appears the callback in setConfig is undefined at jira-cmd/lib/auth.js:63:24:

setConfig: function (callback) {
            var that = this;
            if (this.checkConfig()) {
                this.updateConfig();
                console.log('callback', callback); // callback undefined
                return callback(true);
            } else {
                if (!fs.existsSync(this.cfgPath)) {
                    fs.mkdirSync(this.cfgPath);
                }

I love this CLI tool, any tips on how to debug?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:30 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
palashkulshcommented, Jul 9, 2019

Please let me know if any functionality is needed in jira-cmd. we can triage and develop it. closing this now.

1reaction
DeBraidcommented, Jul 8, 2019

@jnewton03 @palashkulsh I’m back in the game! Thanks for the help. All good on my end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues are not showing under child issues panel | Jira
Summary. Few users are not able to view child issues ( Epic) under the Initiative in Jira issue view screen ...
Read more >
save queries in configuration file · Issue #99 · go-jira/jira - GitHub
jira ls -Q myquery. I thought about saving the queries themselves in config.yml, but I'm not sure if that would work or what...
Read more >
jira-cmd - npm
There are no other projects in the npm registry using jira-cmd. ... ls [options] List my issues start <issue> Start working on an...
Read more >
Possible issues with Jira Cards and Jira add-on
Suggestions for Jira Cards ; Jira URL is not valid / Enter Jira base URL / Bad request. Deserialization. ; There is an...
Read more >
confluence create button missing
With Structure, you can assemble Jira issues any way you'd like, ... locate the. ls -al Cause The user account running Confluence does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found