Use formatted_id in server-rendered work package detail views#22788
Open
Conversation
e1a7da3 to
e1cac12
Compare
3 tasks
Base automatically changed from
feature/73717-adapt-work-package-lists-for-project-based-semantic-work-package-identifiers
to
dev
April 21, 2026 15:06
4188d61 to
c9db8f3
Compare
The shared info line rendered hard-coded `#<numeric-id>` instead of respecting the semantic identifier setting. Use WorkPackage#formatted_id (added alongside the autocompleter/global-search work) so Relations, hover cards, version widgets, backlogs, meetings, and time tracking all pick up semantic IDs like "PROJ-42" in semantic mode, "#42" in classic mode.
Covers semantic mode, semantic-mode-with-nil-identifier fallback, and classic mode. Also exercises the pre-existing rendering paths (type, status, link) that previously had no component-level coverage.
6db634a to
54ba86e
Compare
HDinger
approved these changes
Apr 22, 2026
2 tasks
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.
Ticket
https://community.openproject.org/wp/73921
What are you trying to accomplish?
Server-rendered work package display sites (Relations tab, hover cards, version widgets, backlogs, meetings, time tracking) were still showing hard-coded
#<numeric-id>instead of the semantic identifier when semantic mode is active.Screenshots
Before: Relations tab shows
#12079,#179, etc.After: Relations tab shows
MYPROJ-1,MYPROJ-2, etc. in semantic mode;#42in classic mode.What approach did you choose and why?
Adds a
WorkPackage#formatted_idmethod to theSemanticIdentifierconcern - the backend counterpart of the frontendformattedIdgetter. It uses the same detection logic: ifdisplay_idcontains letters (semantic), return as-is; if purely numeric (classic), prefix with#.Since
InfoLineComponentis the shared component used across several server-rendered WP display sites, this single change should propagate to:Merge checklist