Lita handler for showing JIRA issue details when a JIRA issue key is mentioned in chat. Inspired by the Hubot jira-issue plugin
Note: Version 0.2+ of this hander require Lita 4. If you'd like to use this handler with Lita 3.x, please use version 0.1
Add lita-jira-issues to your Lita instance's Gemfile:
gem "lita-jira-issues"
The jira_issues
handler needs to be configured with your JIRA instance. Add
the following configurations to your lita_config.rb
.
config.handlers.jira_issues.url = 'http://jira.local'
config.handlers.jira_issues.username = ENV['JIRA_USER'] || 'user'
config.handlers.jira_issues.password = ENV['JIRA_PASSWORD'] || 'password'
As in the example above, you can always use environment variables for sensitive information like the JIRA user's password.
Optionally you can prevent JIRA issue lookups from certain users using the ignore configuration parameter
config.handlers.jira_issues.ignore = [ 'Jira', 'Github' ]
Simply mention any JIRA valid key in upper or lower case, eg. JIRA-123, proj-8, and Lita will respond with the issue details.