GithubHelp home page GithubHelp logo

reference-project / rocketchat-jira-trigger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gustavkarlsson/rocketchat-jira-trigger

0.0 1.0 0.0 179 KB

Outgoing webhook integration for Rocket.Chat that summarizes any JIRA issues mentioned

License: MIT License

Java 100.00%

rocketchat-jira-trigger's Introduction

Build Status codecov Docker Automated build Image Layers Image version MIT licensed

rocketchat-jira-trigger

Outgoing webhook integration for Rocket.Chat that summarizes any JIRA issues mentioned

Building

Clone the repository and run:

Linux/OS X

./gradlew installDist

Windows

gradlew.bat installDist

The binaries will be located in build/install

Configuration

To get started you only need to configure the URI of your JIRA server and some user credentials (unless anonymous access is allowed). Create a configuration file with the .toml extension and set it up like this:

[jira]
uri = "https://jira.mycompany.com"
username = "someuser"
password = "somepassword"

If you don't want to save your password in plain text, then leave it out and you will be prompted to enter it when running the app. For further configuration settings, check out the defaults.

Running

With a start script

Run the start scripts with a configuration file as the only argument:

Linux/OS X

bin/rocketchat-jira-trigger config.toml

Windows

bin\rocketchat-jira-trigger.bat config.toml

With Docker

Use the docker cli and mount a config file as volume /app/config.toml and set up port mapping for port 4567:

docker run -v $(pwd)/config.toml:/app/config.toml -p 4567:4567 --rm -it gustavkarlsson/rocketchat-jira-trigger:latest

Trying it out

In Rocket.Chat, set up an outgoing webhook pointing at the server on port 4567. Example: http://server.mycompany.com:4567/ and write a message containing a known JIRA issue to try it out. Example: Let's check out SUP-1234

Rocket.Chat should reply with details about the JIRA issue.

Tip: If you want more details, append a + like this: Let's check out SUP-1234+

Troubleshooting

If your messages aren't getting any replies, first check the log.

HTTP 403 errors

If you're getting HTTP 403 errors, it might be because CAPTCHA is enabled on your JIRA server and it wants you to manually re-authenticate. In that case, log out of JIRA in your browser and then log in again.

If you're still having trouble, feel free to create an issue explaining your problem.

Connection refused when using docker

When using docker, you must NOT override the app port in the configuration file. The docker image is configured to only export export port 4567. You can change what port the container should listen to with the -p option.

rocketchat-jira-trigger's People

Contributors

gustavkarlsson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.