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

[issue 773] Jira's autolink should support issue links that contain a comment link in the URL

Open sibasankarnayak opened this issue 3 years ago β€’ 11 comments

added autolink for link that contain a comment link

ticket here

Fixes #773

sibasankarnayak avatar Feb 16 '22 03:02 sibasankarnayak

Hello @sibasankarnayak,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

mattermod avatar Feb 16 '22 03:02 mattermod

Codecov Report

Merging #839 (74b501c) into master (c6a6f00) will decrease coverage by 0.02%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #839      +/-   ##
==========================================
- Coverage   34.81%   34.78%   -0.03%     
==========================================
  Files          52       52              
  Lines        5949     5954       +5     
==========================================
  Hits         2071     2071              
- Misses       3666     3671       +5     
  Partials      212      212              
Impacted Files Coverage Ξ”
server/plugin.go 15.84% <0.00%> (-0.45%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update c6a6f00...74b501c. Read the comment docs.

codecov-commenter avatar Feb 16 '22 04:02 codecov-commenter

This PR has been automatically labelled "stale" because it hasn't had recent activity. A core team member will check in on the status of the PR to help with questions. Thank you for your contribution!

/cc @aspleenic

mattermod avatar Feb 27 '22 01:02 mattermod

Blocked by https://github.com/mattermost/mattermost-plugin-autolink/pull/175

hanzei avatar Mar 01 '22 11:03 hanzei

@mickmister as discussed over call , confirmed that autolink feature works in master and kept the shorthand and added the project independent regex for ticket url and comment url

sibasankarnayak avatar Mar 10 '22 18:03 sibasankarnayak

@dipak-demansol When you review this, please test the plugin upgrade path. Meaning:

  • Install the previous version of the Jira plugin
  • Install Jira instance with several projects
  • Note the autolink entries that were created
  • Install this version of the plugin
  • Note the autolink entries. Please post the result here.
  • Test behavior of posting ticket links with the form:
    • https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210
    • https://mattermost.atlassian.net/browse/MM-12345
    • MM-12345 (should only work with Jira Cloud)

Please test with Jira Cloud and Jira Server

mickmister avatar May 06 '22 16:05 mickmister

@sibasankarnayak @mickmister i can still see the same output before and after installing the PR build. image

steps 1) installed the market jira build. 2) Connected with the jira instance. (autolink was already Configured) 3) paste the link of the comment from that same instance, pls see the attachment image. 4) installed the PR build and paste again the same link and got the same output, pls see the attachment image.

dipak-demansol avatar May 10 '22 11:05 dipak-demansol

@sibasankarnayak @dipak-demansol Can you please get together and try to debug the issue @dipak-demansol is seeing?

mickmister avatar May 10 '22 18:05 mickmister

talled the market jira build.

I see you install the market jira build that doesn't contain the solution , try installing this PR and then do test with required step.

sibasankarnayak avatar May 12 '22 06:05 sibasankarnayak

@sibasankarnayak I have also tested this and see that the latest commit on the PR does not solve the issue. See screen below. image

Regarding your comment above:

  1. Reinstalling the Jira instance does not resolve the issue and autolink behavior
  2. Even still - Is there a possible solution that does not requires re-installing the plugin?

DHaussermann avatar May 12 '22 14:05 DHaussermann

@DHaussermann i Used the same build and it worked for me this time, i just removed the jira instance and connected again but you and me we also did the same thing and it was not worked for us so need to investigate that what was the exact reason because of that the same build previously not worked for us. its working still without knowing the cause of the issue i can't pass this.

attacking the screenshot as its now worked for me, image

[DEM-1 (comment)](https://demansol.atlassian.net/browse/DEM-1?focusedCommentId=10257) server is https://dkh-ha-20.test.mattermost.cloud/

dipak-demansol avatar May 31 '22 16:05 dipak-demansol