ndaversa / hubot-jira-bot

Lets you search for JIRA tickets, open them, transition them thru different states, comment on them, rank them up or down, start or stop watching them or change who is assigned to a ticket. Also, notifications for assignments, mentions and watched tickets.
https://www.npmjs.com/package/hubot-jira-bot
MIT License
61 stars 43 forks source link

TypeError: Cannot read property 'name' of undefined #29

Closed GregSharpe1 closed 7 years ago

GregSharpe1 commented 7 years ago

Keep receiving this on various commands,

HUBOT_SLACK_TOKEN='xoexample slack tokenUl' HUBOT_JIRA_GITHUB_DISABLED='true' HUBOT_JIRA_PROJECTS_MAP='{"web":"WEB","ops":"OPS"}' HUBOT_JIRA_TRANSITIONS_MAP='[{"name":"new","jira":"New"},{"name":"ready","jira":"Ready"},{"name":"assessing","jira":"Assess"},{"name":"active","jira":"Active"},{"name":"testing","jira":"Testing"},{"name":"feedback","jira":"Feedback"},{"name":"done","jira":"Done"}]' HUBOT_JIRA_TYPES_MAP='{"story":"Story","bug":"Bug","task":"Task","epic":"Epic"}' HUBOT_JIRA_PRIORITIES_MAP='[{"name":"Blocker","id":"1"},{"name":"Critical","id":"2"},{"name":"Major","id":"3"},{"name":"Minor","id":"4"},{"name":"Trival","id":"5"}]' HUBOT_JIRA_URL='https://company.atlassian.net' HUBOT_JIRA_FIELDS='["project"]' HUBOT_JIRA_USERNAME='gregsharpe' HUBOT_JIRA_PASSWORD='password' ./bin/hubot --adapter slack

Installed all required npm modules. Can't think of what it could be. Any help?

ndaversa commented 7 years ago

I might be that the env vars are not properly set?