Custom Field on custom issue typeAdd Custom field to an issue

I created a custom field and custom issue.
How can i programmatically force all this issue type, to have this new custom field ?