I am creating organizations in Jira ServiceDesk using the JIRA Service Desk Cloud API (POST /rest/servicedeskapi/organization), which responses with an ID for the organization.
However, when creating a new issue for a project in JIRA with the JIRA REST API (POST rest/api/issue). The provided ID is not recognized when set to the organizations field (through its customfield).
However when I add the organization to the project via the UI, and attempt to create the issue again, the ID is recognized.
So my question is, is there an API call which will add organizations to a project?