mingming-cn / redmine_work_wechat

3 stars 1 forks source link

简介

企业微信通知插件,支持特性如下:

安装

  1. 安装插件
    cd ${REDMINE_ROOT}/plugins
    git clone https://github.com/mingming-cn/redmine_work_wechat.git`
    cd ..
    bundle exec rake redmine:plugins:migrate RAILS_ENV=production
  2. 进入插件页面配置相关参数,管理 > 插件 > Redmine Work Wechat plugin > 配置
  3. “用户关联类型” 选择 “自定义” 时请在用户资料中配置 “企微ID” 字段

用户关联类型

可以选择 Redmine 用户企业微信 用户 的关联方式,默认为通过邮箱关联,可选项:邮箱登录名自定义(需要在用户资料里配置)

使用默认浏览器打开通知链接

开启功能前,需在企业微信管理后台,在应用管理 “网页授权及JS-SDK” 功能中,把 Redmine 系统的域名配置为可信域名。

Task

使用方法

Available options:

  • :days => how many days in the future to remind about (defaults to 7)
  • :tracker => id of tracker for filtering issues (defaults to all trackers)
  • :project => id or identifier of project to process (defaults to all projects)
  • :users => array of user/group ids who should be reminded
  • :version => name of target version for filtering issues (defaults to none)
rake redmine:send_work_wechat days=10 RAILS_ENV="production"

通知效果

截图

插件配置

新问题通知

问题更新通知

定期任务通知