How do I fix my automation to change the status of a task in correlation to another task's status only under the same epic?

My goal is to automatically change the PCAP - Baseline task to in progress when C&D - Baseline is marked complete but only within the same Epic (baseline in this case)
Some tools I have to work with are,
Labels for PCAP - Baseline task are, Workflow and PCAP
Labels for C&D - Baseline task are, Workflow and C&D
This is what I have so far
and my audit log
