Problem
You would like to display the status of the issues parent in a custom field.
Display comment text only
if(isNotNull(parent)) { return parent.status; }
Make sure that the “Child update” trigger is enabled in the scripted field configuration to ensure that the scripted field on the child gets updated when the parent issue is updated.