You may need to import issues linked to directories objects. Since different issues have different linked objects, the bulk update cannot help. Use Jira import from CSV to create/update issues linked to Directories objects. Jira Administration → System → External system import

(warning) Ensure the referenced object exists in Directories, otherwise the link will not be created.