setFieldValue(String <field_name>or<field_Id>, Object value) method sets the value of a system or custom field of the Issue object where, 

You can use this method on any Issue object, such as the one provided by the issuelinkedIssue and parentIssue variables, as well as the Issue objects returned by other methods such as getParentObject()getEpic() or getLinkedIssues().

Method availability:

This method is allowed only in scripts run from the

The Fix Version/s will be set to that of the child.