forked from ruslan337/jira-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_template.py
42 lines (38 loc) · 2.13 KB
/
config_template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/python3
# -*- coding: utf-8 -*-
token='123456789:ABCDE1234567890ABCDE1234567890ABCDE' # Telegram Bot token
jiraserver='https://yourcompanyname.atlassian.net'
jirauser='jiraUser'
jirapass='jiraUserPassword'
db_dir='/var/local/jira_notifier/' # The app will create some files here, be sure that this app UID has such permessions.
issues_dir = db_dir + 'issues/'
log_dir=db_dir+'log/' # Log dir
attach_dir=db_dir+'attach/' # Attach files are going to be stored here.
jira_projects=['PROJ1','PROJ2'] # The codes of jour jira projects, that are going to be used by this app. To make available all
# projects, just comment this option.
no_projects_per_line=4 # number of project names in one line (when they are buttons)
no_users_per_line=4 # number of users per one line (when they are buttons)
default_project='TST'
default_lang='ru'
# Format for users list, who is going to use this app, or who is going to be assignee for the tasks from this bot
# users={ 'user_telegram_chat_id' : {
# 'name':'Birth name or some alias name of user',
# 'username':'Telegram username. None value is allowed',
# 'project':'Default jira project code for task created by this user. NOT TO THIS USER',
# 'jirauser':'Jira Username',
# 'isAssignee':'All users are allowed to assign the task to this user from this app',
# 'language':'Bot interface language',
# 'priority':'Default priority for tasks created by this user'},
# 'next_chat_id' : {...},
# }
# See example above
users_black_list=['user1', 'user2'] # Jira usernames, who is not going to be assignee. Commonly, your jirauser (from above) must
# be added here.
user_list={ \
'11111111' : { 'name':'Martian', 'username':'martian337', 'project':'TST',\
'jirauser':'admin', 'isAssignee':True, 'language':'ru', 'priority':'Medium'},\
'22222222' : { 'name':'Fatboy', 'username':None, 'project':'ABC',\
'jirauser':'fat.boy', 'isAssignee':True, 'language':'ru', 'priority':'High'},\
'33333333' : { 'name':'Anthony', 'username':'A_USER', 'project':'ABC',\
'jirauser':'anthony.hopkins', 'isAssignee':True, 'language':'ru', 'priority':'Medium'},
}