[#73104] Add Sprint column to work package table#22706
Draft
Conversation
7b12857 to
70ab2ae
Compare
This is necessary to make the group_by work
a29ba86 to
8b50e1e
Compare
We delegate the resource name to the object itself, that way we can override it in our record and no knowledge about the backlogs module is necessary in the core.
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/73104
What are you trying to accomplish?
Allows you to select the sprint column within the work package table and sort and group it.
Requires the
view_sprintpermission in a project to be available.Screenshots
What approach did you choose and why?
There are some notable points here:
Agile::Sprintwould be converted toagile_sprint, butsprintis correct. So we have to add a mapping. Since the core should not be required to know about the backlogs module, I added a way for models to provide their API resource link name. The given name will be used by the mapping if available.Merge checklist