I am trying to create an automation between two projects. The current JIRA hierarchy we follow is as below;
Portfolio Epic > Epic > User Story/Task
Problem Statement:
I have two projects Project A and Project B
- Project A - Portfolio Epic
- Project B - Portfolio Epic
I have an Epic in Project A - Epic 1 that is linked via "Related To" link to the overall Portfolio Epic in Project B. Both projects have two different project keys.
I am trying to set up an automation that looks at Epic 1 (Project A) and based on the "Relates To" link picks up the children in Project B - Portfolio Epic and sums up the story points and the % complete on children tickets and writes it back to Project A - Epic 1.
What I have got so far:

Currently the Automation is manually triggered while I test it out and I will move it to scheduled or auto triggered once I have it to where I need it.
Story points is calculated using the following - {{lookupIssues.Story Points.sum}}
At this point although the above rule is supposed to work it returns no value as I suspect the following may be blocking it. This automation only works if the rule is global; as project specific rules restrict the look up clause above. I need help validating my theory.
Second part to my problem is that I am unable figure out if there is a way to get the progress % over to Project A - Epic 1 from Project B

Any help and/or guidance would be greatly appreciated.