Import/export data from/to an external system

Hi everyone. I want to ask what is the best practice to export Jira data to an external system and, on the other hand, update certain customs fields in Jira from that external system.