Having trouble linking an issue to a new created Epic. My logic is
1. Create new story from form.
2. If story has no parent create Epic
3. Link created Epic as parent
The linking happens but the story is not nested under the Epic in list view.
This is a team managed project.

This epic is shown as a parent (see below)

But when I manually add a parent to the issue, the issue become nested under the Epic as shown below and shows child issues and linked issues.

Any ideas on what I may be doing wrong. Maybe I don't understand the difference between linked and child issues.