Coder Social home page Coder Social logo

Comments (6)

w1r0x avatar w1r0x commented on June 24, 2024

We already have this list in bot settings https://github.com/mobitel-ltd/jira-to-matrix/blob/master/config.example.js#L29

Is it OK for you?

from jira-to-matrix.

BrotherWarrior avatar BrotherWarrior commented on June 24, 2024

Hi.

The problem is here

return [username, creator].reduce((acc, item) => {

If user in ingore list (creator or user who thigger room creation) then issue will be ignored and room is not created. But we need to create room. We need to ignore send invite to specific users in created room.

Let me explain. We have Jira email bot, This bot creating issues in Jira from incoming emails and new created issue has field creator set to bot username (let it JiraEmailUser). Helpdesk master (let it be user JiraMaster) set label Riot and it triggers webhook.
Jira-to-matrix bot get hook and here Issue.Creator = JiraEmailUser, User=JiraMaster.
Bot is checking for ignore issue, it look at ignore list and see JiraEmailUser here. Then variable isInUsersToIgnore sets to false

from jira-to-matrix.

w1r0x avatar w1r0x commented on June 24, 2024

Just reread your first message and understand what you mean. Thanks for feedback. I think we can add it.

from jira-to-matrix.

grigori-gru avatar grigori-gru commented on June 24, 2024

Hello! As I understand, you want to have user list, which are not expected to be in room when it creates? It's seems to me you catch that ignore list is much more important, it doesn't let you anything with hook created by users from list?

from jira-to-matrix.

BrotherWarrior avatar BrotherWarrior commented on June 24, 2024

Hi. Let's try again ))

I have Jira with several bots that creating issues (CI bot, email HelpDesk bot etc).
If we need to discuss this issue we add watchers to issue and set special label (it doesn't matter what way hook is triggered).
CIBot is Issue.Creator.
When Jira-To-Matrix bot processing hook it check User who triggers the hook and Issue.Creator in ignorelist and see CIBot in this list.
Jira-To-Matrix bot ignore this issue.

But we need create room. Jira-To-Matrix bot invites not only "human" accounts in chat room but CIBot too. CIBot is a service account and it never leave room, never post messages and so on.

List of bots is static and I want to deny to invite this users in any rooms, but I don't want to deny processing issues from bots.

from jira-to-matrix.

grigori-gru avatar grigori-gru commented on June 24, 2024

Hi!
I've done it. Just add new param to your config with users array.
#95

from jira-to-matrix.

Related Issues (16)

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.