Skip to content

Redirect issues#show to work items route if issue is a task

Mario Celi requested to merge 358998-redirect-tasks-to-work-item-route into master

What does this MR do and why?

Adds a redirect for Issues#show controller if the fetched issue is of type task and the work_items feature flag is enabled.

How to set up and validate locally

  1. Enable work_items feature flag Feature.enable(:work_items)
  2. Use the console to change issue type to task of any issue issue.update(issue_type: :task)
  3. Go to the regular issue show route e.g. http://127.0.0.1:3000/flightjs/Flight/-/issues/<IID> and you should get redirected to http://127.0.0.1:3000/flightjs/Flight/-/work_items/<GID>
  4. You should not get redirected if the FF is disabled or the issue is not a task

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #358998 (closed)

Edited by Mario Celi

Merge request reports