Skip to content

devadmin-com/vicky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vicky is a robot which sends JIRA activity to relevant slack intelligently mapping JIRA task projects, lables and assignee to slack channels and people.

Getting Started

Connecting to Slack

  • Create a New app in slack https://api.slack.com/apps?new_app=1
  • Add next permissions in OAuth & Permissions -> Scopes -> Bot Token Scopes
    • chat:write
    • users:read
    • users:read.email
  • Install App to workspace. OAuth & Permissions -> OAuth Tokens & Redirect URLs -> Install App to Workspace
  • slack.token.bot property should have value from OAuth & Permissions -> Tokens for Your Workspace -> Bot User OAuth Access Token
  • slack.token.verification property should have value from Basic Information -> Verification Token
  • Invite Vicky to channels you want to see her in

Connecting to JIRA

  • Go to https://<yourdomain.atlassian.net>/plugins/servlet/webhooks#
  • Create new webhook with next settings:
    • URL: https://<path._to_your_slackbot>/event/jira
    • Issue related events - mark created, updated, deleted, for Comment and Issue sections.
  • All users who supposed to get notifications should have "Anyone" visibility level for email here https://id.atlassian.com/manage-profile/profile-and-visibility

Building, Installing, Running

Requirements

  • Java 8 or higher
  • gradle 4.10.2 or higher

How to open the project in IDEA

  • clone the project
  • open it with IntelliJ Idea as gradle project
  • Enable auto-import for gradle
  • Enable annotation processing for IDEA

Configure and launch application

You need to configure application.yml (see example in sample-application.yml) and connect Vicky with JIRA and Slack for correct work.

Hint: Running local machine for testing.
  • Use Ngrok to test webhook integrations on your local machine if you do not have a static IP with following command (ngrok http )
  • Put url generated by Ngrok as webhook in jira settings

Running via Docker

Prerequisites

Preparation

  • Create a new folder mkdir vicky-docker
  • Go to folder cd vicky-docker
  • Copy Dockerfile to new folder
  • Create src folder mkdir src
  • Copy sample-application.yml to src as application.yml
  • Edit src/application.yml and add JIRA credentials and Slack tokens

Building

  • Build project docker build --no-cache -t vicky-docker .

Running

  • Start instance docker run -dit --restart always -p 127.0.0.1:8080:8080 -p 5005:5005 vicky-docker

Features

See Feature Specification Document

License

See the LICENSE file.

Enjoy ;)

Releases

No releases published

Packages

No packages published