Repository navigation
feat(tracker): explain when an issue link cannot be resolved - #11128
Open
MichaelUray wants to merge 2 commits into
Open
MichaelUray wants to merge 2 commits into
MichaelUray wants to merge 2 commits into
Conversation
Opening an issue URL such as /tracker/TSK-999 for an issue that does not exist (or is not visible to the user) only showed the generic workbench text "Object doesn't exist or you are not permitted to access it." with no way to continue. accessDeniedStore now optionally carries a custom label and a navigation link in addition to the plain boolean, and the workbench access denied view renders them. The tracker location resolver uses this to show an issue-specific message and, when the identifier prefix matches a project the user can see, a button that opens that project's issue list. All other callers keep setting true and see the generic text as before. The identifier prefix parsing lives in a small helper with unit tests. Fixes hcengineering#4916 Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com>
…essage Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com>
MichaelUray
force-pushed
the
feat/issue-not-found-message
branch
from
October 26, 2026 14:39
fd00719 to
6ab1b24
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4916
Problem and change
Opening an issue URL such as /tracker/TSK-999 for an issue that does not
exist (or is not visible to the user) only showed the generic workbench
text "Object doesn't exist or you are not permitted to access it." with
no way to continue.
accessDeniedStore now optionally carries a custom label and a navigation
link in addition to the plain boolean, and the workbench access denied
view renders them. The tracker location resolver uses this to show an
issue-specific message and, when the identifier prefix matches a project
the user can see, a button that opens that project's issue list. All
other callers keep setting true and see the generic text as before.
The identifier prefix parsing lives in a small helper with unit tests.
Tests
New unit tests
plugins/tracker-resources/src/__tests__/issueIdentifier.test.ts. Checked manually on a self-hosted instance: an unknown issue number of an existing project shows the issue-specific message and a "Show all issues in " button that opens the project's issues; an unknown prefix shows the message without a button; a missing document still shows the generic text.