openproject icon indicating copy to clipboard operation
openproject copied to clipboard

[#57024] Relative value macros for work package descriptions

Open as-op opened this issue 1 year ago • 0 comments

Ticket

https://community.openproject.org/work_packages/57024

What are you trying to accomplish?

Allow relative embedding of work package values. e.g. in a description of work package with ID 123 use workPackageValue:assignee instead of workPackageValue:123:assignee

What approach did you choose and why?

Instead of finding the current work package in angular, I added code to the HTML pipeline, so if no ID is given AND the rendering is in context of work package (not e.g. wiki nor meeting description) => work package ID is added, so Angular does not need to do anything other than before.

Merge checklist

  • [x] Adjusted tests
  • [x] Adjust doumentation

as-op avatar Aug 28 '24 11:08 as-op