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

Support "Share Issue" workflow in Jira plugin

Open jasonblais opened this issue 5 years ago • 9 comments

Reopened from https://github.com/mattermost/mattermost-plugin-jira/issues/131

CONTEXT

In Jira, it is possible to share a specific ticket with certain users.

This triggers an email notification with the given text message.

image

(See the red box in https://www.google.de/search?q=jira+share+issue&prmd=nisv&source=lnms&tbm=isch&sa=X&ved=2ahUKEwiElebegdPiAhWCCuwKHYwpBZQQ_AUoAnoECAwQAg&biw=1024&bih=634#imgrc=mnsLR2VazD05WM)

PROPOSED CHANGE

Enable users to receive these notifications via Mattermost instead of email.

The exact approach would need to be investigated, but one option is for Mattermost to plug in to the Jira notification preferences and enable users to choose between receiving these notifications in email or Mattermost. The sender would then not be required to make a choice about the message medium.

jasonblais avatar Jun 13 '19 20:06 jasonblais

@jasonblais I would suggest something like this;

  • The user intending to share types /jira share <issueKey> <mattermost username or id>
  • When they press enter, a DM is sent to the MM user whose id/username was provided in the command. The DM has the link to the issue on Jira

AGMETEOR avatar Feb 06 '20 12:02 AGMETEOR

Thanks @AGMETEOR! @aaronrothschild / @jfrerich what do you think?

jasonblais avatar Feb 06 '20 15:02 jasonblais

Thanks @AGMETEOR! @aaronrothschild / @jfrerich what do you think?

@AGMETEOR This sounds like a great addition.

The user intending to share types /jira share <issueKey>

aaronrothschild avatar Feb 12 '20 14:02 aaronrothschild

@AGMETEOR, @jasonblais, @aaronrothschild - I do think we should implement @AGMETEOR's suggestion (verbatim and as suggested).

I think the suggestion from the issue author is asking for one more item.

IMO a user should configure how he/she would like to receive notifications. The sender should not be required to make a choice about the message medium.

This quote suggests that we store a user setting that allows a user to receive MM DM notifcations or email, or perhaps both.

I suggest moving forward with the slash command and if y'all agree there is a third item, we create a separate ticket to address that concern.

jfrerich avatar Feb 26 '20 03:02 jfrerich

Thanks all! As a note, the use case was shared for the situation when someone is inside Jira and wants to share a ticket to one or more users directly from Jira (for notification purposes).

While we could add a Mattermost slash command for it, two thoughts come to mind:

  • it does not address the original use case
  • would the user be more likely to send a DM or at-mention the user with the ticket link, or use a slash command to do so when they want to share it in Mattermost?

Completely open to feedback.

@aaronrothschild @jfrerich @AGMETEOR

jasonblais avatar Feb 26 '20 04:02 jasonblais

@jasonblais, regarding the original use case:

someone is inside Jira and wants to share a ticket to one or more users directly from Jira (for notification purposes)

Correct me if I am wrong, but the user is asking for an integration or app inside Jira, not Mattermost. That seems outside of our scope since it isn't something that could be implemented with the plugin

jfrerich avatar Feb 26 '20 05:02 jfrerich

@jasonblais Regarding your second bullet:

would the user be more likely to send a DM or at-mention the user with the ticket link, or use a slash command to do so when they want to share it in Mattermost?

I think a user would just DM or at-mention vs the slash command and although adding the slash command seems great, I'm not sure that it would get used.

jfrerich avatar Feb 26 '20 05:02 jfrerich

That seems outside of our scope since it isn't something that could be implemented with the plugin

True - at the time of creating the help wanted issue, there were considerations for creating an Atlassian marketplace plugin for Mattermost that would support such a use case and interact with the Mattermost plugin for Jira.

jasonblais avatar Feb 26 '20 12:02 jasonblais

@jasonblais Reading the ticket, I didn't realize it was "in Jira" as the original ask. This sort of UX is possible, but needs some ninja-level-jira-work IMO. Out of scope...

@AGMETEOR However, I like the "share" idea.... BUT - I also just realized...with Autolink and Jira working together now to auto-detect Jira Project Codes.... the user literally just needs to paste the Jira ticket name/id and send it to someone - it is now clickable. I'm not sure it can get simpler than that.

However, with "/jira share" we could show more info to the end-user (before they click) by posting it as a message attachment. I'm kinda torn now.

aaronrothschild avatar Feb 28 '20 15:02 aaronrothschild

Closing issues due to inactivity. This issue can be re-opened with more interest from our community.

wiersgallak avatar Jun 14 '23 01:06 wiersgallak