User list available for comment mentions

Are you missing a feature? Request its implementation here.
NicoAMP
Posts: 98
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

User list available for comment mentions

Post by NicoAMP »

Hello,
When a writer add a comment via review side panel in Oxygen Web Author, he can mention a user in his comment.
Is it possible to configure a list of available users to automatically suggest this list when @ is typed in comment text area?
If not, maybe someone already implement this kind of feature and can help me to start.
Thanks a lot for any help.

Regards,
Nicolas
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
mihaela
Posts: 518
Joined: Wed May 20, 2009 2:40 pm

Re: User list available for comment mentions

Post by mihaela »

Hello,

For the moment there is not possible to provide a list of available users for mentions but I have added a feature request for this in our internal issues tracker. We wil update this thread when it will be available.

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
NicoAMP
Posts: 98
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: User list available for comment mentions

Post by NicoAMP »

Thanks Mihaela for your answer.
Regards,
Nicolas
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
dreifsnider
Posts: 173
Joined: Thu Aug 30, 2018 10:06 pm

Re: User list available for comment mentions

Post by dreifsnider »

Hi Mihaela,

Was this ever implemented? My team is also investigating how we can automatically show a list of users when a user types "@" in a comment box.

We'd also like to auto-match on a user name based on what name is typed, similar to Google Docs.

For what it's worth, we're using GitHub and we're hoping we can present a list of user names captured from our GitHub instance.

Thanks,

Daniel
dreifsnider
Posts: 173
Joined: Thu Aug 30, 2018 10:06 pm

Re: User list available for comment mentions

Post by dreifsnider »

I forgot to add that we are also interested if it would be possible to add this functionality using the API or Oxygen SDK.

We have a Java Developer who is able to extend existing functionality so we're curious if this would be possible.

Thank you!

Daniel
Bogdan Dumitru
Site Admin
Posts: 174
Joined: Tue Mar 20, 2018 5:28 pm

Re: User list available for comment mentions

Post by Bogdan Dumitru »

Hi Nicolas,

We have an internal issue tracker for adding API support for user mentions in review comments, and we're currently considering addressing it in version 28. The idea is to introduce a JavaScript API class or method that applications can use to fetch a list of usernames, which could then be used to show suggestions when typing "@".

However, if you'd prefer not to wait for version 28, you could implement a plugin that replaces the built-in "Add Comment" and "Edit Comment" dialogs with your own custom version. This would give you full control and allow you to implement mention suggestions as users type "@".

Let us know if you're interested in exploring this approach—we’d be happy to help you get started with replacing the default dialog.
Bogdan Dumitru
http://www.oxygenxml.com
alepach56
Posts: 1
Joined: Thu May 29, 2025 8:13 pm

Re: User list available for comment mentions

Post by alepach56 »

Hi Bogdan,
We would be interested in exploring the approach that you mentioned, but we do have a few questions. How should we proceed with replacing the built in "Add Comment" and "Edit Comment" dialogs with our own custom version? Are you indicating all the comment functionality would need to be replaced, or just part of the dialog that processes the comment being typed?

Thank you,
Alejandro
Bogdan Dumitru
Site Admin
Posts: 174
Joined: Tue Mar 20, 2018 5:28 pm

Re: User list available for comment mentions

Post by Bogdan Dumitru »

Hello,

I'm suggesting to replace just the dialog that is presented to the user, not the whole commenting functionality.
One way to replace the dialog is to add a JavaScript that overrides the
sync.actions.review.AddCommentAction.prototype.retrieveCommentFromUser = function() {
let initialComment = this.getInitialComment();
// TODO show a dialog using workspace.createDialog() and return a promise that resolves to an object with 3 properties "content", "okChosen" and "escPressed":
// @property {String} comment The concurrent update.
// @property {boolean} okChosen true if the user chose the ok action.
// @property {boolean} escPressed true if the ESC key was pressed when the dialog was opened.
};

and for edit you have to override the same function but from the sync.actions.review.EditCommentAction class.

What do you think about this temporary solution?
Bogdan Dumitru
http://www.oxygenxml.com
Post Reply