Fix new issue template work item logic

What does this MR do and why?

Use a single boolean to gate which breadcrumb to use and which form to show.

References

Screenshots or screen recordings

state Before After
work_item_view_for_issues off (no change) gdk.test_3000_flightjs_Flight_-issues_new__2 gdk.test_3000_flightjs_Flight_-issues_new__3
work_item_view_for_issues on gdk.test_3000_flightjs_Flight_-issues_new__1 gdk.test_3000_flightjs_Flight_-_issues_new

How to set up and validate locally

  1. Check out this branch
  2. Ensure the work_item_view_for_issues flag is ON in your GDK (https://gdk.test:3000/rails/features/work_item_view_for_issues)
  3. Visit the new issues page for a project (for example, https://gdk.test:3000/flightjs/Flight/-/issues/new)
  4. You will see that Issues only appears once in the breadcrumb

MR acceptance checklist

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

Related to #535474 (closed)

Merge request reports

Loading