Copy the values from Version Picker (multiple versions) to Affects Version/s system field

Hi Team,

I am trying to copy the values from Version Picker(multiple versions) custom field to Affects Version/s system field in Jira.

Is there a way, we can achieve this using script runner plugin or any other plugin. it will be helpful if you share any solution for it.

Thanks in advance.

Regards,
Venkatesh