Hi!
First, a bit of context... I have a couple of Lists, 1. with the list of TEST CASES and 2. with the list of BUGS. When I create a new bug (in list 2.) and link it to a test case, through a "Lookup" column (which allows multiple selection as one bug could be linked to several test cases), I have a flow that blocks (status in a choice column) every test case affected by that bug and registers in another "Lookup" column the bug Id (in list 1.) -> this works ok!!
Now, when a bug is "resolved" (status in a choice column in list 1.), I would like for all the test cases affected by that bug to be moved back to "backlog" (status in a choice column in list 2.) if there are no other bugs blocking that test case and remove the bug Id from the "Lookup" column. Problem is that I cannot filter the array (when item()?['Id'] is not the Id of the resolved Bug) where I store all the bugs that are blocking that test case (coming from a "Lookup" column which allows multiple selection), since the filter action is inside a couple of "for each" loops... it invokes the Id/Values from the loops above.
Attached images:
1. Flow
2. Filter array where item()?['Id] is transformed to Id of the parent for each (LinkToTestCase)


MANY THANKS in advance!