Giter Site home page Giter Site logo

redmine_mentions's Introduction

Redmine Mentions

Allows users to mention team members in their notes/comments.

Functionality

In editing an issue, user can mention his/her colleagues username that are part of the project from the drop down list, the mentioned user receives an email with the body of the comment and information who mentioned him on particular issue.

By default '@' sign is used as the trigger for the mentioning, however the trigger can be changed among available triggers.

Installation

To Install this plugin goto plugins in your redmine repository

Clone the git repository:

    cd plugins
git clone https://github.com/arkhitech/redmine_mentions.git

Restart Redmine

redmine_mentions's People

Contributors

amenk avatar arooshaahmad avatar asimmushtaq avatar babarrehmanx avatar fredsdc avatar hishammalik avatar jangosteve avatar nyholm avatar saippuakauppias avatar swiatkiewicz avatar tedski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_mentions's Issues

Wrong case of usernames

Are there any specific reason to lowercase usernames in editor ?
Because we have usernames starting from capital letter and autocomplete suggests names in lowercase, but this doesn't work - user doesn't receive notification. If I manually change first letter to capital - then it works.

Care to put Issue / Ticket information?

As far as I see it, the email sent to my inbox does not include the issue's identification such as number or link to the issue.
If you add that feature it would be great!

User receives duplicate emails if watcher/reporter and mentioned

Should have an option to not send out duplicate emails if the user is already receiving an email because they're a watcher or the reporter. The best way to handle this would be to send out one email showing they were mentioned and that they would have received the update anyways.

The quick fix would probably not to send out a mentions email if the intended recipient is already a watcher or author.

This plugin make format wrong

image

After I install this plugin. I found this works well. but this plugin break edit format. Text input box for description is not normal position. It seems some carriage return missing.

My environment is below
Environment:
Redmine version 3.4.6.stable
Ruby version 2.3.7-p456 (2018-03-28) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Subversion 1.10.0
Cvs 1.12.13
Git 2.17.1
Filesystem
Redmine plugins:
clipboard_image_paste 1.12
redmine_custom_workflows 0.1.6
redmine_issue_templates 0.2.1
redmine_mentions 0.0.1
redmine_wiki_extensions 0.8.1

I'm looking for how to fix this. Please advice what to change.

Thanks in advance.

Auto-completion shows with vertical offset in the 'Edit' issue modal window.

See the screenshot. Tested on latest Firefox and Chrome. Any ideas on fixing it?
auto_insert_offset

Environment:
Redmine version 3.2.1.stable
Ruby version 2.2.1-p85 (2015-02-26) [x86_64-linux]
Rails version 4.2.5.2
Environment production
Database adapter Mysql2
SCM:
Mercurial 2.8.2
Git 1.9.1
Filesystem
Redmine plugins:
a_common_libs 2.1.5
global_roles 2.1.0
redmine_agile 1.4.0
redmine_banner 0.1.1
redmine_checklists 3.1.3
redmine_issue_tabs 1.1.1
redmine_issues_tree 0.0.7
redmine_mentions 0.0.1
redmine_theme_changer 0.2.0

Add mentions info in `my page`

On some redmine installations notifications are disabled, only RSS is used.

Is it too hard to add new widget in the my page showing latest mentions ?

Add text version of the notification email

For those of us that don't use an email client with html support, it would be nice to have a text version of the email with the link to the issue included.

To clarify this a bit, I use mutt for all my email needs. For html only emails I have mutt configured to feed the email through w3m to produce a text version of the email. However, this means that all markup is lost, so any href="..." urls are gone and only the anchor text remains. This means that when I receive one of the @ mention emails, I can see the issue subject, but I have no url or issue number to work with. So, having a text version of the email which includes the url would solve this problem. In my case having the issue url in the html content (as visible text, not within markup attributes) would also work, but I don't know that this would be a solution for all text based email users.

Mentions in wiki & forum

This would very good to have to, especially forum.

On related note, WikiNG 1.0b also provides mentions that work everywhere (but without handy dropdown box).

Compatibility with Redmine syntax

According to Redmine syntax -- both Textile and Markdown -- user links are formatted as user:USERNAME.

User names that are added by the Redmine Mentions plugin are formatted as USERNAME, which means that they are sometimes turned into proper user links, but sometimes not.

Is it intended behavior that the output of Redmine Mentions does not result in properly formatted Redmine user links? And if so, would it make sense to add support for the latter as an option?

Problems with usernames with dot (i.e. jony, jony.forester)

F.ex.

if I have jony and jony.forester, than if I mentioned jony.forester, than jony will receive,

Environment:
Redmine version 4.2.10.stable
Ruby version 2.7.8-p225 (2023-03-30) [x86_64-linux]
Rails version 5.2.8.1
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp

redmine_mentions 0.0.1

Time zone in email not correct

Hello,

We detect that the email mention not using correct time zone.

Config info:

  • Server time zone: UTC+7
  • Redmine version: 3.4.3.stable
  • User time zone: UTC+7

The email mention is using time zone UTC-0

Regards.

Display issue

If you dont use the author mentioning in first row of content box there will be a display issue like that. the background is in a different row then the actual text. reproduced in chrome and firefox on windows 10.

grafik

tested in 4.0.4.stable

No Popup in CK Editor

We are using the commercial EasyRedmine extensions and HTML which seems to be based on CKEditor as well.

When typing @ there is no popup with the user names.

Could this be fixed?

We might be able to sponsor the fixing of this issue.

redmine_mentions break CKeditor when adding a comment

Here is what I have before installing redmine_mentions when I add a comment/edit existing issue:
selection_026
And then after installing redmine_mentions, the CKeditor doesn't work anymore:
selection_027
Could you reproduce this, is it a bug?
Thank you!
I really like the idea to notify just for part of the issue content.

no auto-complete

I have installed plugin in plugins, and restart with service apache2 restart.

The plugin can be found in admin/plugins, but there is no auto-complete when I mentioned someone in Notes.

Is there something wrong of my usage?

Thanks.

[Feature proposal] Don't send mail in double

Hi,
If a user watch/is assigned to/has created an issue and someone mentioned him/her in a comment, that user will receive two mail :

  • One from redmine core
  • One from this plugin

Could be possible to check that and avoid sending the second mail ?

Thanks for the amazing plugin

Support HTML in mails

We are using CKeditor for issues which produces HTML.
Can support for HTML in the mails be added (currently, the HTML source is displayed)

Mailing in redmine 4.0.0 does not work

I'm getting the following error in redmine 4.0.0 when somebody is mentioned (and the send-email is triggered):

ActionView::Template::Error (undefined method `default_url_options' for ActionMailer::Parameterized::Mailer:Class):
    1: <h4><%= link_to "[#{@issue.project.name} - #{@issue.tracker.name} ##{@issue.id}] #{@issue.subject}", issue_url(@issue) %></h4>
    2: 
    3: <br /><br />
    4: 
  
plugins/redmine_mentions/app/models/mention_mailer.rb:9:in `default_url_options'
plugins/redmine_mentions/app/views/mention_mailer/notify_mentioning.html.erb:1:in `_plugins_redmine_mentions_app_views_mention_mailer_notify_mentioning_html_erb___430758911849552215_74117420'
plugins/redmine_mentions/app/models/mention_mailer.rb:16:in `notify_mentioning'
plugins/redmine_mentions/lib/redmine_mentions/journal_patch.rb:19:in `block in send_mail'
plugins/redmine_mentions/lib/redmine_mentions/journal_patch.rb:16:in `each'
plugins/redmine_mentions/lib/redmine_mentions/journal_patch.rb:16:in `send_mail'
app/models/journal.rb:81:in `save'
app/models/issue.rb:1840:in `create_journal'
app/models/issue.rb:209:in `create_or_update'
app/controllers/issues_controller.rb:564:in `block in save_issue_with_child_records'
app/controllers/issues_controller.rb:552:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:169:in `update'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

ps. thanks for this plugin, very useful ๐Ÿ‘

Error 500 on issue update using mentions

Any idea?

  Current user: axel (id=1)
  Rendered mailer/_issue.text.erb (14.0ms)
  Rendered mailer/issue_edit.text.erb within layouts/mailer (23.4ms)
  Rendered mailer/_issue.html.erb (3.6ms)
  Rendered mailer/issue_edit.html.erb within layouts/mailer (129.8ms)
Completed 500 Internal Server Error in 1144.4ms

SyntaxError (/home/portrinoqm/config/redmine-2.5/plugins/redmine_mentions/app/models/mention_mailer.rb:3: syntax error, unexpected ':', expecting kEND
  default from: Setting.mail_from
               ^
/home/portrinoqm/config/redmine-2.5/plugins/redmine_mentions/app/models/mention_mailer.rb:12: syntax error, unexpected ':', expecting ')'
    mail(to: user.mail, subject: "You were mentioned in a note")
            ^
/home/portrinoqm/config/redmine-2.5/plugins/redmine_mentions/app/models/mention_mailer.rb:12: syntax error, unexpected ':', expecting '='
    mail(to: user.mail, subject: "You were mentioned in a note")
                                ^
/home/portrinoqm/config/redmine-2.5/plugins/redmine_mentions/app/models/mention_mailer.rb:12: syntax error, unexpected ')', expecting kEND):
  app/models/journal.rb:54:in `save'
  app/models/issue.rb:1515:in `create_journal'
  app/models/issue.rb:165:in `create_or_update'
  app/controllers/issues_controller.rb:478:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:466:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:188:in `update'

My environment:

Environment:
  Redmine version                2.5.1.stable.13103
  Ruby version                   1.8.7-p352 (2011-06-30) [x86_64-linux]
  Rails version                  3.2.17
  Environment                    production
  Database adapter               MySQL
SCM:
  Subversion                     1.6.17
  Git                            1.7.9.5
  Filesystem                     
Redmine plugins:
  clipboard_image_paste          1.8
  line_numbers                   1.0.0
  redmine_checkout               0.6-BETA
  redmine_create_wiki_page       0.1
  redmine_drafts                 0.2.0
  redmine_improved_searchbox     0.0.3
  redmine_involvement_filter     0.2.0
  redmine_knowledgebase          3.0.4
  redmine_people                 0.1.6
  redmine_silencer               0.3.0
  redmine_static_link            0.1.1
  redmine_wiki_lists             0.0.2
  sidebar_hide                   0.0.5

Now working in redmine version 5

Hello, we have issue with run this plugin on redmine 5 version. Any advice how to renable this plugin?
Is a compatibility update planned?

Thanks

In issue header

When mentioning in the issue header (editing an issue), no mention is sent.
Should we just disable the autocomplete for the header - as it is not there on new issues as well?

[request] Add the mentioned user as watcher

Hi, would be possible somehow to automatically add the mentioned user in the watcher list automagically?
We are using restricted permissions so only watchers can reply and see the conversation. Just mentioning someone triggers an email notification but it has no permissions to see the issue. Just the notification

What is this supposed to do?

I have this plugin installed on Redmine 2.5, so far, @username does absolutely nothing. Shouldn't it be creating a link to that user, or something?

Set X-Redmine-Project email header

Redmine sets a couple of special X-Redmine- headers in native email messages. These headers can then be used by email clients to filter messages.

It would be great, if Mentions plugin did the same. Especially, I'm interested in X-Redmine-Project.

Redmine got 500 error after installed this plugin

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back

The log shows that a method called "delete_if" is not been claimed

Started GET "/issues/5" for 111.193.182.23 at 2014-12-15 18:50:50 +0800
Processing by IssuesController#show as HTML
Parameters: {"id"=>"5"}
Current user: zhichao.lv (id=1)
Rendered issues/_action_menu.html.erb (2.7ms)
Rendered issue_relations/_form.html.erb (1.4ms)
Rendered issues/_relations.html.erb (2.2ms)
Rendered issues/_history.html.erb (24.4ms)
Rendered issues/_action_menu.html.erb (1.8ms)
Rendered issues/_form_custom_fields.html.erb (0.1ms)
Rendered issues/_attributes.html.erb (11.6ms)
Rendered plugins/redmine_mentions/app/views/hooks/redmine_mentions/_edit_mentionable.html.erb (3.9ms)
Rendered issues/_form.html.erb (26.0ms)
Rendered issues/_edit.html.erb (26.7ms)
Rendered issues/show.html.erb within layouts/base (75.3ms)
Completed 500 Internal Server Error in 132ms

ActionView::Template::Error (undefined method delete_if' for #<User::ActiveRecord_Relation:0x00000007780828>): 4: <% regex_find = '/\B'+Setting.plugin_redmine_mentions['trigger']+'(\w*)$/i'%> 5: 6: 7: <%users= @project.users.delete_if{|u| (u.type != 'User' || u.mail.empty?)}%> 8: <%users_regex=users.collect{|u| "#{Setting.plugin_redmine_mentions['trigger']}#{u.login}"}.join('|')%> 9: <% regex_highlight = '/\B('+users_regex+')/g' %> 10: <script> lib/redmine/hook.rb:119:inblock (2 levels) in render_on'
lib/redmine/hook.rb:117:in map' lib/redmine/hook.rb:117:inblock in render_on'
lib/redmine/hook.rb:61:in block (2 levels) in call_hook' lib/redmine/hook.rb:61:ineach'
lib/redmine/hook.rb:61:in block in call_hook' lib/redmine/hook.rb:58:intap'
lib/redmine/hook.rb:58:in call_hook' lib/redmine/hook.rb:167:incall_hook'
app/views/issues/_form.html.erb:44:in block in _app_views_issues__form_html_erb___1797317687149565551_74475560' app/helpers/application_helper.rb:1023:inlabelled_fields_for'
app/views/issues/_form.html.erb:1:in _app_views_issues__form_html_erb___1797317687149565551_74475560' app/views/issues/_edit.html.erb:8:inblock in _app_views_issues__edit_html_erb__972739190247922089_74614380'
app/helpers/application_helper.rb:1016:in labelled_form_for' app/views/issues/_edit.html.erb:1:in_app_views_issues__edit_html_erb__972739190247922089_74614380'
app/views/issues/show.html.erb:132:in _app_views_issues_show_html_erb__17552338068304259_77461980' app/controllers/issues_controller.rb:128:inblock (2 levels) in show'
app/controllers/issues_controller.rb:125:in `show'

And redmine info is here:
Environment:
Redmine version 2.6.0.devel
Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux]
Rails version 4.1.8
Environment production
Database adapter Mysql2
SCM:
Git 1.7.10.4
Filesystem
Redmine plugins:
redmine_mentions 0.0.1

Security issue: public access

if Redmine is configured to allow access to specific projects publicly (i.e. "Requires authentication" is not active) then access to /mentions/ is allowed for everybody and shows mentions from all projects!

feature suggestion : choose CSS selectors in plugin settings

Hi everyone, nice plugin, I use it every day!!

I am using a plugin that creates another comment textarea, it would be nice to be able to change the CSS selector in the settings so we could change the class or id like this:
image

Tell me if I can help !?

The future of mentions, possibility to convert this plugin into a patch?

Redmine 4 was out recently, and unlike last years, there was a big move for it in 2018 judging by the amount of issues that were resolved ever since 3.4.6 release.
I really believe mentions should become the core feature of Redmine for the next release and further on even become the feature that will trigger the initiative to develop proper notifications center so people would finally be able to choose to be notified about things even inside the Redmine itself and not just email... then also spawn such ability as adding REST API features for the mentions, to enable apps to send proper push notifications with messages you were mentioned in.

https://www.redmine.org/issues/13919

I would like to offer to convert this into a full scale .diff patch if possible, to later submit it to the thread mentioned above, would you mind to do so or if not, would you then agree to let us use reuse your experience and convert this into a patch by ourselves at some point?

We also gathered up in the Redmine dedicated Discord server, since official Redmine IRC is dead, you may join our little community if you re interested. The invite link is: https://discord.gg/tHgdVSj

After Plugin Installed No Notification Mail

After I've installed the plugin, notification mails about issue updates (added notes), assigned_to, status etc. changes started not to deliver to project members. Only new issue creation notification was delivered.

  • I've tested on,
    redmine 3.0.7
    redmine 3.3.0

Quoted comment with mention triggers email as "mentioned"

If there is a mention in a quoted comment then the user gets an email saying they were mentioned.

Where this is really annoying and the use-case which triggered me to report this issue is when replying to a mention and quoting that mention, I'll receive an email saying I was mentioned. So I'm being notified of myself mentioning myself.

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.