Coder Social home page Coder Social logo

jira-to-matrix's People

Contributors

brotherwarrior avatar disko23 avatar grigori-gru avatar mixassio avatar mleg avatar pragmawolf avatar vladislavgen avatar w1r0x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jira-to-matrix's Issues

Mapping JIRA Projects -> Matrix Rooms

I'd like to try and map certain JIRA projects to specific Matrix rooms.

As such, if we have PROJECT-134, that will end up in a room like 'project' in Matrix.

Is this possible at the moment? It seems that if we're only creating rooms per JIRA ticket (not scalable for us) - but I'd like to put one project per room.

I have no problems doing this mapping in the config file, but it doesn't quite seem possible yet?

Error installing jira-to-matrix

Hi

I'm trying to setup the jira-to-matrix bot. We are using matrix-synapse with ma1sd, and I would like to integrate jira..

The server is running on debian 10, but currently I have the following errors when I try to install the package.

npm ERR! prepareGitDep 1>

npm ERR! prepareGitDep > [email protected] postinstall /home/nettrust/.npm/_cacache/tmp/git-clone-57321621/node_modules/core-js

npm ERR! prepareGitDep > node scripts/postinstall || echo "ignore"

npm ERR! prepareGitDep

npm ERR! prepareGitDep Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

npm ERR! prepareGitDep

npm ERR! prepareGitDep The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

npm ERR! prepareGitDep > https://opencollective.com/core-js

npm ERR! prepareGitDep > https://www.patreon.com/zloirock

npm ERR! prepareGitDep

npm ERR! prepareGitDep Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm ERR! prepareGitDep

npm ERR! prepareGitDep

npm ERR! prepareGitDep > [email protected] prepare /home/nettrust/.npm/_cacache/tmp/git-clone-57321621

npm ERR! prepareGitDep > yarn clean && yarn build && git rev-parse HEAD > git-revision.txt

npm ERR! prepareGitDep

npm ERR! prepareGitDep

npm ERR! prepareGitDep 2> npm WARN install Usage of the --dev option is deprecated. Use --only=dev instead.

npm ERR! prepareGitDep sh: 1: yarn: not found

npm ERR! prepareGitDep npm ERR! code ELIFECYCLE

npm ERR! prepareGitDep npm ERR! syscall spawn

npm ERR! prepareGitDep npm ERR! file sh

npm ERR! prepareGitDep npm ERR! errno ENOENT

npm ERR! prepareGitDep npm ERR! [email protected] prepare: yarn clean && yarn build && git rev-parse HEAD > git-revision.txt

npm ERR! prepareGitDep npm ERR! spawn ENOENT

npm ERR! prepareGitDep npm ERR!

npm ERR! prepareGitDep npm ERR! Failed at the [email protected] prepare script.

npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! prepareGitDep

npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:

npm ERR! prepareGitDep npm ERR! /home/nettrust/.npm/_logs/2019-12-03T14_12_04_876Z-debug.log

npm ERR! prepareGitDep

npm ERR! premature close

npm ERR! A complete log of this run can be found in:

npm ERR! /home/nettrust/.npm/_logs/2019-12-03T14_12_07_139Z-debug.log

I unfortunately have little to no experience with nodejs. Which Nodejs and npm do I need to use? Do you have any additional information to install the package? Prerequisites? Do you have a matrix room for jira-to-matrix?

Errno 7

Hello,

I am trying to do 'npm run start' but I am getting the following errors:

11/15/2019, 6:32:26 AM,769 - warn: [/src/app.js] Jira Bot stopped
{
message: "EISDIR: illegal operation on a directory, open 'logs/service'",
stack: "Error: EISDIR: illegal operation on a directory, open 'logs/service'",
errno: -21,
code: 'EISDIR',
syscall: 'open',
path: 'logs/service'
}
11/15/2019, 6:32:26 AM,772 - info: [/fsm/index.js] Jira server close

/home/n0maint/jira-to-matrix/node_modules/javascript-state-machine/lib/state-machine.js:530
throw new Exception("transition is invalid while previous transition is still in progress", transition, from, to, this.state);
^
{
message: 'transition is invalid while previous transition is still in progress',
transition: 'stop',
from: 'startConnection',
to: 'empty',
current: 'startConnection'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] start: node src/app.js
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Ignore self signed certificate

Hello again,

thanks again for your great work, we have started using the jira-to-matrix in our test environment and it works very smoothly.
But there is another problem now, we started using https for matrix with a self signed certificate.

When we now start the bridge, the following error appears:

(node:19397) UnhandledPromiseRejectionWarning: Error in Matrix connection
Error in Matrix connection
createClient error. BaseUrl: https://XXXXXX:8448, userId: @XXXXXXX:XXXXXXXX:8448
Error: self signed certificate

Is there a way to bypass the certificate check?

"Less noise" bot mode to create new room only for projects, not for each issue

At now, as I understand from project description, bot creates separate Matrix room for each task in each project? This is generally too intrusive for regular use cases.

So will be good to add "less noise" mode, when bot create new separate rooms only for projects, and post notifications from all project issues (and other events) to this one room. For grouping notifications per issue, they can be posted as replies to first/previous notification about this issue.

And maybe "middle noise" mode with additionally separate rooms for each epic in projects.

Service not starting

Hi,

I am trying to implement the jira-to-matrix but I am getting many errors.

npm run start

[email protected] start /root/jira-to-matrix
node src/app.js

/root/jira-to-matrix/src/modules/log.js:41
if (logConfig.type === 'console' || logConfig.type === 'both') {
^

TypeError: Cannot read property 'type' of undefined
at getLogger (/root/jira-to-matrix/src/modules/log.js:41:19)
at Object. (/root/jira-to-matrix/src/config/validate-config.js:3:44)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/root/jira-to-matrix/src/config/index.js:3:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node src/app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-01-22T18_00_20_450Z-debug.log

Node version is
v10.15.0

I have also used a jira-matrix-bot user, but with the same result.
Can you help me resolve the issue? Also tried with node 8, the same result.

Thank you

Error in prio command

Hello,

we are not able to change the priority of an issue. The following error appears:

2019-3-13 14:19:30,302 - error: [/timeline-handler/index.js] Error in event handling
Error in Matrix prio command
Error in POST request http://jira/rest/api/2/issue/BSP-23, status is 405, body is {"update":{"priority":[{"set":{"id":"3"}}]}}
Event sent to !cGQdMjQKaVdHVQMpXZ:chatserver with event id $155248677022igLTK:chatserver
setting pendingEvent status to sent in !cGQdMjQKaVdHVQMpXZ:chatserver

Can you help us on this?

No such file or directory: 'build'

Hi - I have a clean lubuntu server with the following installed:
node -v 10.15
nodejs -v 10.15
redis-server -v 5.0.5
npm -v 6.14.15
also installed yarn

then I clone and cd into the folder w/ package.json and run npm installl.
I get the error "No such file or file or directory: 'build'

do you know what I might be missing?

User list for ignore to invite in room

It would be great to have Bot-list or smth similar. Users from this list should not to be inveted in created room. We are using mail plugin in Jira, issues created from email contains creator username that is service account. If we add that users to common ignore list then issues created by service account ignoring to process by jira-to-matrix bot.

Provide integration plugin on Jira side for UI

Will be good to provide native integration plugin on Jira side, together with bot on Matrix side, that will automate bot integration configuration via UI.

Also this will improve search of your project for Jira users, because now there are no plugins via keyword "matrix" https://digiterrapro.atlassian.net/plugins/servlet/ac/com.atlassian.jira.emcee/discover#!/discover/search?query=matrix and increase user base, maybe with clients that will pay for integration and custom development.

Did you plan to implement something like this? At first step this can be very basic functional, that show link to github and some install instructions.

Manual bot mode for bridge events only from selected project to room

Will be good to implement also manual mode for this bot, like the current Jira-Slack integration alternative.

So users manually invite bot to already created room, and via bot commands they set project, events from which will be bridged to current room, and event types (task creating, updating, change status, commenting, etc). And add option to disable auto-creating rooms in bot settings. Does this not hard to implement?

Fix buffer()

DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Option to invite users with lowercase as name

Hi again,

we have a problem when a new project is created.
Our matrix server runs with the mxisd plugin for Active Directory authentification.

The problem is, the users are then parsed in Matrix as, for example, @max.moritz:matrix.org (all lowercase).
But in Jira(where we also use AD authentication), the invitaions are sent to riot through your bridge like @Max.Moritz:matrix.org (this comes from Jira-we use also AD authentication.

The Matrix server cannot ofcourse find the user and invites an unknown user.

Is there a way to convert the invitation username to lowercase and then invite the users into the room?

Thanks

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.