Fix new field bug and only copy title and description

What does this MR do and why?

We are only saving the title and the description in the draft data now since the widgets and extra fields are causing some issue

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.

Screen_Recording_2025-01-29_at_14.57.53

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Open /issues/new like http://localhost:3000/gitlab-org/gitlab-test/-/issues/new
  2. Everything works
  3. Go to ee/app/assets/javascripts/work_items/graphql/work_item_widgets.fragment.graphql and comment the linked items widget.
  4. Refresh /issues/new, everything still works
  5. Again in /issues/new, add a draft (I just added "Text" to the description)
  6. Uncomment the widget
  7. Refresh. Widgets should be visible
Edited by Deepika Guliani

Merge request reports

Loading