hi, Has anyone ever synchronised assets between two Jira instances?
Apparently it’s not possible; you have to use custom fields.
Do you have any scripts for retrieving the asset and storing it in a custom field?
Thanks
hi, Has anyone ever synchronised assets between two Jira instances?
Apparently it’s not possible; you have to use custom fields.
Do you have any scripts for retrieving the asset and storing it in a custom field?
Thanks
Synchronizing Jira Assets (formerly Insight objects) between two Jira instances can be achieved using Exalate, but there are some important considerations. Direct synchronization of asset objects isn’t natively supported, so the common approach is to retrieve asset information and store it in custom fields, which can then be synchronized.
To do this, you typically use a script in your outgoing sync to extract the relevant asset data (like the asset name, key, or any attribute you need) and place it into a custom field on the issue. On the receiving side, you can then use the incoming sync script to process this data as needed.
Here’s a basic example of how you might retrieve an asset attribute and store it in a custom field in your outgoing sync script:
// Replace 'Assets Custom Field' with the name of your Assets field
def assetsField = issue.customFields."Assets Custom Field"
if (assetsField) {
// Assuming the asset object has a 'Name' attribute
replica.customFields."Asset Name" = assetsField.value?.name
}
On the incoming side, you can map this value back to a custom field:
if (replica.customFields."Asset Name") {
issue.customFields."Asset Name" = replica.customFields."Asset Name"
}
You’ll need to adjust the field names and logic based on your specific Jira setup and the attributes you want to sync.
For more details and advanced examples, check out the documentation on synchronizing Jira Assets objects and custom fields:
https://docs.exalate.com/docs/syncing-assets-objects
This approach allows you to keep asset information in sync between Jira instances, even though direct object synchronization isn’t available.
Hi @FRAYSSINHES
Firstly, welcome to the Exalate community ![]()
You are correct, at the moment Exalate does not support a native way to sync assets, however if we are talking about syncing an Asset field, it is possible, we have come up with a script that does supports assets sync. I do want to clarify that the script is done to work with the assets fields and not the Assets object library.
You can check this thread Unable to Synchronize Assets Field Values Between projects in JSM Cloud
If you have any further questions, please let me know
Best,
Kevin