Skip to content

Prevent Jira hover lookups for date-like strings - #1924

Open
Shankar-v27 wants to merge 1 commit into
atlassian:mainfrom
Shankar-v27:main
Open

Prevent Jira hover lookups for date-like strings#1924
Shankar-v27 wants to merge 1 commit into
atlassian:mainfrom
Shankar-v27:main

Conversation

@Shankar-v27

@Shankar-v27 Shankar-v27 commented Aug 5, 2026

Copy link
Copy Markdown

What Is This Change?

Fixes #1921.

When Jira hover is enabled, hovering over date-like strings such as 2026-08 currently triggers unnecessary Jira lookups because they match IssueKeyRegEx.

This change adds a localized guard in IssueHoverProvider to skip hover lookups for YYYY-MM date-like strings before calling issueForKey().

The change intentionally leaves IssueKeyRegEx unchanged so existing issue-key parsing behavior (including numeric project identifiers) is preserved.

How Has This Been Tested?

  • Added unit tests covering:

    • 2026-08 does not trigger a Jira lookup
    • 2026-08-05 does not trigger a Jira lookup
    • ABC-123 continues to trigger a Jira lookup
    • 123-456 continues to trigger a Jira lookup
  • Ran the relevant unit tests locally.

  • npm run test

  • npm run lint


Rovo Dev code review: Rovo Dev couldn't review this pull request
The pull request author does not have access to Rovo Dev.

Signed-off-by: Shankar V <shankarvelmurugan2018@gmail.com>
@atlassian-cla-bot

atlassian-cla-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

Hooray! All contributors have signed the CLA.

@atlassian

atlassian Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

To enable Rovo Dev code reviews, link your GitHub account to your Atlassian account.

This is a one-time task that takes less than a minute. Once your account is linked, resubmit the pull request to trigger a code review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jira hover queries configured sites for date-like strings and other false-positive issue keys

1 participant