Epic search filter in issue search uses IID instead of ID

Summary

When filtering issues by epic, the epic id presented to users is actually the IID. This is confusing and I propose we replace the IID with ID.

Steps to reproduce

  1. Go to https://gitlab.com/groups/gitlab-org/-/issues?sort=created_date&state=opened
  2. Filter by an epic
  3. See that the epic id rendered is actually a iid

Example Project

https://gitlab.com/gitlab-org/gitlab/-/issues?sort=created_date&state=opened&epic_id=287568

&6168 (closed)

These are the same epics, once with id once with iid.

What is the current bug behavior?

Issue filter uses iid.

What is the expected correct behavior?

Issue filter uses id

Relevant logs and/or screenshots

Screen_Shot_2022-02-01_at_13.52.22

Output of checks

Possible fixes

Edited by Fabian Zimmer