Fix iterations autocomplete in RTE

What does this MR do and why?

Fix iterations autocomplete in RTE

  1. when serialized/saved, iteration is serialized to its reference, not title.
  2. when typing /iteration in RTE, *iteration: is prefilled and iterations dropdown is triggered.

Changelog: fixed

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen Recording 2024-12-17 at 12.23.52.mov Screen Recording 2024-12-17 at 12.23.26.mov
Screen Recording 2024-12-17 at 12.24.54.mov Screen Recording 2024-12-17 at 12.24.21.mov

How to set up and validate locally

  1. Try adding a reference to an iteration in RTE.
  2. Try using the /iteration command.
Edited by Himanshu Kapoor

Merge request reports

Loading