Comments (6)
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.
Hi.
The problem is here
jira-to-matrix/src/bot/helper.js
Line 22 in f9952c0
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.
Just reread your first message and understand what you mean. Thanks for feedback. I think we can add it.
from jira-to-matrix.
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.
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.
Hi!
I've done it. Just add new param to your config with users array.
#95
from jira-to-matrix.
Related Issues (16)
- Service not starting HOT 12
- Ignore self signed certificate HOT 1
- Option to invite users with lowercase as name HOT 4
- Error in prio command HOT 2
- Mapping JIRA Projects -> Matrix Rooms HOT 5
- Errno 7 HOT 2
- Provide integration plugin on Jira side for UI HOT 1
- "Less noise" bot mode to create new room only for projects, not for each issue HOT 7
- Error installing jira-to-matrix HOT 3
- Manual bot mode for bridge events only from selected project to room HOT 1
- No such file or directory: 'build' HOT 1
- [question] Is it possible to post all messages in one room HOT 3
- Fix link to testcover
- Fix buffer() HOT 1
- Hardcoded username in user request to Jira HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jira-to-matrix.