Pick assignee for JIRA issues with hubot-jira-lotto

 日本語

Chat

I published a Hubot script to pick assignee for JIRA issues.

ngs/hubot-jira-lotto

npm install --save hubot-jira-lotto

Commands

hubot pick (an) assignee (for) <ISSUE-NUMBER> from <ASSIGNEE-GROUP>

This command picks an assignee for the issue randomly from <ASSIGNEE-GROUP>.

Random logic is weighted with number of issues in same project already assigned to.

Configuration

heroku config:set \
  HUBOT_JIRA_LOGIN=hubot \
  HUBOT_JIRA_PASSWORD=password \
  HUBOT_JIRA_DOMAIN=myjira.atlassian.net

This Hubot script require Admin priviledges for the login account.

Please add the login account to administrators group.

Converting JIRA username to chat username to mention

If you use different username in your adapter (Campfire, HipChat, Slack …) and JIRA, you can define converter method in robot instance.

eg: map ngs to atsushi_nagase

# scripts/convert-handle.coffee
module.exports = (robot)->
  map =
    ngs: 'atsushi_nagase'
  robot.convertHandle = (name)->
    map[name] || name
comments powered by Disqus