palashkulsh/jira-cmd

worklog doesn't work

Komosa opened this issue · 2 comments

Hi, I encountered this problem with worklog subcommand:

jira.js worklog APM-42231
/home/kokos/foo/jira-cmd/node_modules/cli-table/lib/cli-table/index.js:180
      var contents = item.toString().split("\n").reduce(function (memo, l) {
                          ^
TypeError: Cannot call method 'toString' of undefined
    at /home/kokos/foo/jira-cmd/node_modules/cli-table/lib/cli-table/index.js:180:27
    at Array.forEach (native)
    at generateRow (/home/kokos/foo/jira-cmd/node_modules/cli-table/lib/cli-table/index.js:179:11)
    at /home/kokos/foo/jira-cmd/node_modules/cli-table/lib/cli-table/index.js:273:16
    at Table.forEach (native)
    at Table.toString (/home/kokos/foo/jira-cmd/node_modules/cli-table/lib/cli-table/index.js:256:10)
    at /home/kokos/foo/jira-cmd/lib/jira/worklog.js:75:27
    at Request.callback (/home/kokos/foo/jira-cmd/node_modules/superagent/lib/node/index.js:586:3)
    at Request.<anonymous> (/home/kokos/foo/jira-cmd/node_modules/superagent/lib/node/index.js:133:10)
    at Request.emit (events.js:95:17)
    at IncomingMessage.<anonymous> (/home/kokos/foo/jira-cmd/node_modules/superagent/lib/node/index.js:714:12)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickCallback (node.js:442:13)

BTW, Did you plan further development of this package?

edit: adding to worklog works

Hi @Komosa. Thanks for opening the PR. And regarding the question... Yes, I do but sadly I don't have so much time to update this project and I didn't had for a long while.

If you are still facing the issue please feel free to reopen the issue, and we'll solve it together : ) .