In the server instance of Jira structure you can add a remove duplicates within the automation. The Cloud version does not. As an example I've created a query to pull in all issues types for a given filter. I've added the "add issues under epics" automation, which works fine. the problem is it now shows the stories under the epic, as well as, all the stores at the same level as the epic. so, the stories are under the same folder twice.
The server instance does not have this behavior, but also has an automation to remove dups. So, unless everything you create is under and epic and you just restrict your issues types to epics in your original query....your going to have dups within the automation context.
Is there a way I'm not seeing?