EntityProperties Structure and Sync

    Object entityProperties

    The entityProperties is an array of objects which can be used to carry any type of information and then it is saved as entity properties for an issue.

    Introduced in 2.2.1-AC

    How to Sync EntityProperties

    Basically, to synchronize entity properties between issues add the following code:

    # Just send all properties
    replica.entityProperties = issue.entityProperties

    Here is an example of adding to entityProperties a custom value:

    # Just send the mood label, but not the underlying ID or metadata
    replica.entityProperties.mood = issue.customFields.mood.value.value

    On the remote side, it's possible to add logic. In this case, the property "mood" will be also added to the entity properties of the issue:

    if (replica.entityProperties.mood == "Happy") {