mattermost-plugin-jira icon indicating copy to clipboard operation
mattermost-plugin-jira copied to clipboard

When an issue's assignee changes, the plugin should use the connected user's MM handle in the resulting post

Open underdark456 opened this issue 1 year ago • 6 comments

Hey, Is there any way to edit the post being sent to mattermost? I need the user who is in the Assignee field to be mentioned.

underdark456 avatar May 16 '23 12:05 underdark456

Hi @underdark456, this post is not editable at the moment. At every possible point in the plugin, we swap out the Jira name with the Mattermost username, which would mention the Mattermost user. If a given post shows the first&last name of a Jira user, that means we got the information just like that from Jira, and it's not unique enough to cross-reference to a connected user in Mattermost.

If a given user sets their Mattermost mention settings to include the last name of the Jira user, they will get a mention in Mattermost. https://docs.mattermost.com/channels/mention-people.html#words-that-trigger-mentions Does this solve your issue?

mickmister avatar May 17 '23 22:05 mickmister

Yep it's working, I get message like: john.doe updated status from "Testing" to "Ready to release" on story [TEST-1361: test](https://jira.test.test/browse/TEST-1361).

But what about Assignee? Can I somehow mention person in that filed?

underdark456 avatar May 18 '23 09:05 underdark456

@underdark456 If I understand correctly, you're wanting it to say:

@john.doe updated assignee from @person1 to @person2 on...

I'm not 100% sure this is possible, but will open the issue up to the community to investigate :+1:

mickmister avatar May 18 '23 15:05 mickmister

Hey, any news?

underdark456 avatar Jun 11 '23 14:06 underdark456

Do we want something like what Sentry Slack integration does for assigning an owner for an issue? Let me know your thoughts on this Screenshot 2023-06-17 at 9 02 26 PM

jatin33 avatar Jun 17 '23 15:06 jatin33