We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\app\classes\NotifyLogic.php sendEmailInitParams 方法修改:(增加最后2行) if ($sourceType == 'issue' || $sourceType == 'issue_comment') { if ($sourceType == 'issue_comment') { $timelineModel = new TimelineModel(); $timeline = $timelineModel->getRowById($sourceId); $tplArr['comment_content'] = $timeline['content']; $sourceId = $timeline['issue_id']; } $issueModel = new IssueModel(); $row = $issueModel->getById($sourceId); $sourceTitle = $row['summary'];
$tplArr['issue_title'] = $sourceTitle; $tplArr['issue_key'] = $row['issue_num']; $tplArr['issue_link'] = ROOT_URL . 'issue/detail/index/' . $row['id']; $issueTypeModel = new IssueTypeModel(); $tplArr['issue_type_title'] = $issueTypeModel->getById($row['issue_type'])['name']; $moduleRow = (new ProjectModuleModel())->getById($row['module']); $tplArr['issue_module_title'] = isset($moduleRow['name']) ? $moduleRow['name'] : ''; $tplArr['assignee_display_name'] = (new UserModel())->getByUid($row['assignee'])['display_name']; $tplArr['report_display_name'] = (new UserModel())->getByUid($row['reporter'])['display_name']; $tplArr['issue_start_date'] = $row['start_date']; $tplArr['issue_end_date'] = $row['due_date']; }
SQL:
delete from main_notify_scheme_data;
INSERT INTO main_notify_scheme_data (id, scheme_id, name, flag, user, title_tpl, body_tpl) VALUES (1, 1, '事项创建', 'issue@create', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n\r\n{display_name} 创建了事项 {issue_title}\r\n> --------------------------------------\r\n>\r\n> 键值: {issue_key}\r\n> 网址: {issue_link}\r\n> 项目: {project_title}\r\n> 问题类型: {issue_type_title}\r\n> 模块: {issue_module_title}\r\n> 报告人: {report_display_name}\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}\r\n> 开发人: {assignee_display_name}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (2, 1, '事项更新', 'issue@update', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n\r\n{display_name} 更新了 {issue_title}\r\n> --------------------------------------\r\n>\r\n> 键值: {issue_key}\r\n> 网址: {issue_link}\r\n> 项目: {project_title}\r\n> 问题类型: {issue_type_title}\r\n> 模块: {issue_module_title}\r\n> 报告人: {report_display_name}\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}\r\n> 开发人: {assignee_display_name}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (3, 1, '事项分配', 'issue@assign', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n\r\n{display_name} 更新了 {issue_title}\r\n> --------------------------------------\r\n>\r\n> 键值: {issue_key}\r\n> 网址: {issue_link}\r\n> 项目: {project_title}\r\n> 问题类型: {issue_type_title}\r\n> 模块: {issue_module_title}\r\n> 报告人: {report_display_name}\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}\r\n> 开发人: {assignee_display_name}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (4, 1, '事项已解决', 'issue@resolve@complete', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n\r\n{display_name} 更新了 {issue_title}\r\n> --------------------------------------\r\n>\r\n> 键值: {issue_key}\r\n> 网址: {issue_link}\r\n> 项目: {project_title}\r\n> 问题类型: {issue_type_title}\r\n> 模块: {issue_module_title}\r\n> 报告人: {report_display_name}\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}\r\n> 开发人: {assignee_display_name}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (5, 1, '事项已关闭', 'issue@close', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n\r\n{display_name} 更新了 {issue_title}\r\n> --------------------------------------\r\n>\r\n> 键值: {issue_key}\r\n> 网址: {issue_link}\r\n> 项目: {project_title}\r\n> 问题类型: {issue_type_title}\r\n> 模块: {issue_module_title}\r\n> 报告人: {report_display_name}\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}\r\n> 开发人: {assignee_display_name}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (6, 1, '事项评论', 'issue@comment@create', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', ' [ {issue_link} ]\r\n\r\n{display_name} 评论了 {issue_title}\r\n> --------------------------------------\r\n>\r\n> {comment_content}\r\n> \r\n\r\n\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (7, 1, '删除评论', 'issue@comment@remove', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', ' [ {issue_link} ]\r\n\r\n{display_name} 删除评论 {issue_title}\r\n> --------------------------------------\r\n>\r\n> {comment_content}\r\n> \r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (8, 1, '开始解决事项', 'issue@resolve@start', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n\r\n{display_name} 更新了 {issue_title}\r\n> --------------------------------------\r\n>\r\n> 键值: {issue_key}\r\n> 网址: {issue_link}\r\n> 项目: {project_title}\r\n> 问题类型: {issue_type_title}\r\n> 模块: {issue_module_title}\r\n> 报告人: {report_display_name}\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}\r\n> 开发人: {assignee_display_name}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (9, 1, '停止解决事项', 'issue@resolve@stop', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n\r\n{display_name} 更新了 {issue_title}\r\n> --------------------------------------\r\n>\r\n> 键值: {issue_key}\r\n> 网址: {issue_link}\r\n> 项目: {project_title}\r\n> 问题类型: {issue_type_title}\r\n> 模块: {issue_module_title}\r\n> 报告人: {report_display_name}\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}\r\n> 开发人: {assignee_display_name}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (10, 1, '新增迭代', 'sprint@create', '["project"]', '{project_path} {sprint_title}', ' \r\n\r\n{display_name} 新增迭代: {sprint_title}:\r\n \r\n\r\n> --------------------------------------\r\n>\r\n> 项目: {project_title}\r\n> 开始日期: {sprint_start_date}\r\n> 截止日期: {sprint_end_date}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (11, 1, '设置迭代进行时', 'sprint@start', '["project"]', '{project_path} {sprint_title}', ' \r\n\r\n{display_name} 更新了迭代: {sprint_title}:\r\n \r\n\r\n> --------------------------------------\r\n>\r\n> 项目: {project_title}\r\n> 开始日期: {sprint_start_date}\r\n> 截止日期: {sprint_end_date}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (12, 1, '删除迭代', 'sprint@remove', '["project"]', '{project_path} {sprint_title}', ' \r\n\r\n{display_name} 删除迭代: {sprint_title}:\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (13, 1, '更新迭代', 'sprint@update', '["project"]', '{project_path} {sprint_title}', ' \r\n\r\n{display_name} 更新了迭代: {sprint_title}:\r\n \r\n\r\n> --------------------------------------\r\n>\r\n> 项目: {project_title}\r\n> 开始日期: {sprint_start_date}\r\n> 截止日期: {sprint_end_date}\r\n\r\n>\r\n>\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)'), (14, 1, '事项已删除', 'issue@delete', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n\r\n{display_name} 删除了事项\r\n\r\n\r\n\r\n\r\n--\r\n这条信息是由Masterlab发送的\r\n(v3.2.1)');
main_notify_scheme_data
id
scheme_id
name
flag
user
title_tpl
body_tpl
The text was updated successfully, but these errors were encountered:
No branches or pull requests
\app\classes\NotifyLogic.php
sendEmailInitParams 方法修改:(增加最后2行)
if ($sourceType == 'issue' || $sourceType == 'issue_comment') {
if ($sourceType == 'issue_comment') {
$timelineModel = new TimelineModel();
$timeline = $timelineModel->getRowById($sourceId);
$tplArr['comment_content'] = $timeline['content'];
$sourceId = $timeline['issue_id'];
}
$issueModel = new IssueModel();
$row = $issueModel->getById($sourceId);
$sourceTitle = $row['summary'];
SQL:
delete from main_notify_scheme_data;
INSERT INTO
main_notify_scheme_data
(id
,scheme_id
,name
,flag
,user
,title_tpl
,body_tpl
) VALUES(1, 1, '事项创建', 'issue@create', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '
\r\n\r\n{display_name} 创建了事项 {issue_title}
\r\n> --------------------------------------
\r\n>\r\n> 键值: {issue_key}
\r\n> 网址: {issue_link}
\r\n> 项目: {project_title}
\r\n> 问题类型: {issue_type_title}
\r\n> 模块: {issue_module_title}
\r\n> 报告人: {report_display_name}
\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}
\r\n> 开发人: {assignee_display_name}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(2, 1, '事项更新', 'issue@update', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n
\r\n{display_name} 更新了 {issue_title}
\r\n> --------------------------------------
\r\n>\r\n> 键值: {issue_key}
\r\n> 网址: {issue_link}
\r\n> 项目: {project_title}
\r\n> 问题类型: {issue_type_title}
\r\n> 模块: {issue_module_title}
\r\n> 报告人: {report_display_name}
\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}
\r\n> 开发人: {assignee_display_name}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(3, 1, '事项分配', 'issue@assign', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n
\r\n{display_name} 更新了 {issue_title}
\r\n> --------------------------------------
\r\n>\r\n> 键值: {issue_key}
\r\n> 网址: {issue_link}
\r\n> 项目: {project_title}
\r\n> 问题类型: {issue_type_title}
\r\n> 模块: {issue_module_title}
\r\n> 报告人: {report_display_name}
\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}
\r\n> 开发人: {assignee_display_name}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(4, 1, '事项已解决', 'issue@resolve@complete', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n
\r\n{display_name} 更新了 {issue_title}
\r\n> --------------------------------------
\r\n>\r\n> 键值: {issue_key}
\r\n> 网址: {issue_link}
\r\n> 项目: {project_title}
\r\n> 问题类型: {issue_type_title}
\r\n> 模块: {issue_module_title}
\r\n> 报告人: {report_display_name}
\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}
\r\n> 开发人: {assignee_display_name}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(5, 1, '事项已关闭', 'issue@close', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n
\r\n{display_name} 更新了 {issue_title}
\r\n> --------------------------------------
\r\n>\r\n> 键值: {issue_key}
\r\n> 网址: {issue_link}
\r\n> 项目: {project_title}
\r\n> 问题类型: {issue_type_title}
\r\n> 模块: {issue_module_title}
\r\n> 报告人: {report_display_name}
\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}
\r\n> 开发人: {assignee_display_name}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(6, 1, '事项评论', 'issue@comment@create', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '
[ {issue_link} ]
\r\n\r\n{display_name} 评论了 {issue_title}
\r\n> --------------------------------------
\r\n>
\r\n> {comment_content}
\r\n>
\r\n\r\n\r\n\r\n
\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(7, 1, '删除评论', 'issue@comment@remove', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '
[ {issue_link} ]
\r\n\r\n{display_name} 删除评论 {issue_title}
\r\n> --------------------------------------
\r\n>
\r\n> {comment_content}
\r\n>
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(8, 1, '开始解决事项', 'issue@resolve@start', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n
\r\n{display_name} 更新了 {issue_title}
\r\n> --------------------------------------
\r\n>\r\n> 键值: {issue_key}
\r\n> 网址: {issue_link}
\r\n> 项目: {project_title}
\r\n> 问题类型: {issue_type_title}
\r\n> 模块: {issue_module_title}
\r\n> 报告人: {report_display_name}
\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}
\r\n> 开发人: {assignee_display_name}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(9, 1, '停止解决事项', 'issue@resolve@stop', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n
\r\n{display_name} 更新了 {issue_title}
\r\n> --------------------------------------
\r\n>\r\n> 键值: {issue_key}
\r\n> 网址: {issue_link}
\r\n> 项目: {project_title}
\r\n> 问题类型: {issue_type_title}
\r\n> 模块: {issue_module_title}
\r\n> 报告人: {report_display_name}
\r\n> 计划开发时间: {issue_start_date} 至 {issue_end_date}
\r\n> 开发人: {assignee_display_name}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(10, 1, '新增迭代', 'sprint@create', '["project"]', '{project_path} {sprint_title}', '
\r\n\r\n{display_name} 新增迭代: {sprint_title}:
\r\n \r\n\r\n> --------------------------------------
\r\n>
\r\n> 项目: {project_title}
\r\n> 开始日期: {sprint_start_date}
\r\n> 截止日期: {sprint_end_date}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(11, 1, '设置迭代进行时', 'sprint@start', '["project"]', '{project_path} {sprint_title}', '
\r\n\r\n{display_name} 更新了迭代: {sprint_title}:
\r\n \r\n\r\n> --------------------------------------
\r\n>
\r\n> 项目: {project_title}
\r\n> 开始日期: {sprint_start_date}
\r\n> 截止日期: {sprint_end_date}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(12, 1, '删除迭代', 'sprint@remove', '["project"]', '{project_path} {sprint_title}', ' \r\n
\r\n{display_name} 删除迭代: {sprint_title}:
\r\n
\r\n
\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(13, 1, '更新迭代', 'sprint@update', '["project"]', '{project_path} {sprint_title}', '
\r\n\r\n{display_name} 更新了迭代: {sprint_title}:
\r\n \r\n\r\n> --------------------------------------
\r\n>
\r\n> 项目: {project_title}
\r\n> 开始日期: {sprint_start_date}
\r\n> 截止日期: {sprint_end_date}
\r\n\r\n>
\r\n>
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
'),
(14, 1, '事项已删除', 'issue@delete', '["assigee","reporter","follow"]', '{project_path} ({issue_key}) {issue_title}', '\r\n
\r\n{display_name} 删除了事项
\r\n\r\n\r\n\r\n\r\n--
\r\n这条信息是由Masterlab发送的
\r\n(v3.2.1)
');
The text was updated successfully, but these errors were encountered: