Position needs to be listed as an array [x,y]. So if you want to parent the X position to rotate, enter the code:
temp = thisComp.layer(“layerName”).transform.rotation;
[temp, y]
where “y” is whatever the y position already was.
temp = thisComp.layer("layerName").transform.rotation;
[temp, y]