Skip to content

Latest commit

 

History

History
58 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

58 lines (33 loc) · 1.11 KB

jira-webhook

Use this JIRA webhook to create a simple bot. Simply add one of the following commands to your issue description and let the bot do the rest.

Commands

@bot subtract

subtract

  • take story points from new issue
  • subtract story points from epic
  • add comment to newly created issue

comment

JIRA configuration

  1. Administration -> System

    system

  2. Advanced -> WebHooks

    advanced

  3. Create a WebHook

    plus

  4. Enter some name and set your URL. Make sure your JIRA server can access the computer where your JIRA webhook is running.

    url

  5. Leave the rest as is and click on Create

    create

Development

Activate Go modules.

export GO111MODULE=on

Build image.

docker build --tag=bot .

Run image. dns is required to find JIRA from inside the container. Remove it if your JIRA instance doesn't require custom DNS settings.

docker run -d -p 8060:8060 --dns 172.19.169.27 -e JIRA_USERNAME='john' -e JIRA_PASSWORD='wayne' bot