Migrate Options Tree Via API
To manually migrate a field context from your Data Centre instance to your Cloud site, you can export the configuration using the GetOptions API and then import it into the field’s Administration page in Cloud. This is how you can do this:
Call the API:
Select your preferred method to call the API (e.g. Postman or VSCode using an
.htmlfile). In this example, we’ll use VSCode.Make the API call, filtering the result to get the single field context (e.g. using the field name). This is how to add the query parameter:
?fieldName=name%20of%20the%20MLCS%20field.
Copy the response of the call (this is an example of configuration).
In your Cloud instance, go to the field, click on the 3 dots (…) next to the field and click on “Context and default values”, then click on “Edit custom field config”.
Once you land on the Administration page, use the “Paste options” button to paste the configuration that you’ve previously copied from the API response, as shown in the “paste options” section of the Administration page documentation.
You are all done!
Now, you can check the tree preview to make sure the configuration has been copied correctly.
After this process, you are ready to migrate the MLCS values of your project’s issues: Migrate MLCS values of Jira issues.