EN
Español
English
Português
    Register case

    Relationship between ASMS and Jira Server

    To perform the integration it is necessary to relate the fields of the Aranda ASMS ticket with the fields of the Jira Server issue through the “case” section of the configuration file.

    JSON Structure

    {
      "case": [
        {
        "reference": "",
        "definition": {
          "subject": {
            "type": "",
            "key": ""
          },
          "description": {
            "type": "",
            "key": ""
          },
          "responsible": {
            "type": "",
            "key": "",
            "defaultValue": {
              "id": 0,
              "value": ""
            }
          },
          "responsibleGroup": {
            "key": "",
            "type": "",
            "defaultValue": {
              "id": 0,
              "value": ""
            }
          },
          "client": {
            "type": "",
            "key": "",
            "defaultValue": {
              "id": 0,
              "value": ""
            }
          },
          "company": {
            "type": "",
            "key": "",
            "defaultValue": {
              "id": 0,
              "value": ""
            }
          },
          "applicant": {
            "type": "",
            "key": "",
            "defaultValue": {
              "id": 0,
              "value": ""
            }
          },
          "typeRegister": {
            "type": "",
            "key": "",
            "defaultValue": {
              "id": 0,
              "value": ""
              }
          },
          "ci": {
            "type": "",
            "key": "",
            "defaultValue": {
              "id": 0,
              "value": ""
            }
          }
          }
        }
      ]
    }
    

    Properties :

    Properties Description
    Reference Unique identifier to create a relationship between the concepts project > category, itemType, typeRegister, applicant, responsibleGroup, responsible, company, client see
    Definition Allows you to relate ASMS case fields to Issue fields in Jira Server

    Definition

    To perform the integration it is necessary to relate the case fields in Aranda ASMS with the Jira Server Issue through the “definition” section of the configuration file, these properties in ASMS can be associated with fields of type list or string in Jira Server, excluding the subject and description property.

    Properties:

    Properties Description  
    subject Represents the field Subject of the case in Aranda and allows you to relate this field to an equivalent field of the Issue in Jira Server, it is recommended to use the Summary.  
    Description Represents the field Description of the case in Aranda and allows you to relate this field to an equivalent field of the Issue in Jira Server.  
    typeRegister Represents the field Record Type of the case in Aranda and allows you to relate this field to an equivalent field of the Issue in Jira Server. Internal properties
    responsibleGroup Represents the field Responsible Group of the case in Aranda and allows you to relate this field to an equivalent field of the Issue in Jira Server. Internal properties
    responsible Represents the field Responsible of the case in Aranda and allows you to relate this field to an equivalent field of the Issue in Jira Server. Internal properties
    applicant Represents the field Applicant of the case in Aranda and allows you to relate this field to an equivalent field of the Issue in Jira Server. Internal properties
    Company Represents the field Company of the case in Aranda, allows you to relate this field to another equivalent field of the Issue in Jira Server. Internal properties
    client Represents the field Customer of the case in Aranda and allows you to relate this field to an equivalent field of the Issue in Jira Server. Internal properties
    Ci Represents the field CI of the case in Aranda and allows you to relate this field to an equivalent field of the Issue in Jira Server. Internal properties


    Caso en ASMS: Ilustración de referencia, información del cliente de los casos en la plataforma ASMS


    Caso en ASMS parte 2: Ilustración de referencia, información básica de los casos en la plataforma ASMS


    Issue Jira Server: Ilustración de referencia, información básica de los tickets en la plataforma Jira Server


    Propiedades internas

    {
      "key": "",
      "type": "",
      "defaultValue": {
        "id": 0,
        "value": ""
      }
    }
    


    Donde:

    Properties Description  
    type Association type, the supported types are Value, Mapper, FieldValue. FieldValue, Value, Mapper.
    Key Name or identifier of the field in Jira Server where the information will be searched and updated. Properties in Jira Server
    defaultValue Allows you to add a default value. see


    Propiedad “defaultValue”

    1. The property defaultValue allows you to add default values, if you add this property with the value of defaultValue.id for the case in Aranda or defaultValue.value for the Issue in Jira Server, the system adds the default value to the platform that set the value.
    2. For the “subject, description” fields, you can’t add a default value because they are user-written values and a value relationship isn’t supported.
    3. You can only add a default value if the mapping type is “Mapper” or “FieldValue”.

    Example:

    1. Set the value “incident” to the Reference:
    2. In the definition of the case Take Responsible Property (responsible)
    3. “type”: Assign the association type as FieldValue:
    4. “key”: Name the property in Jira Server as assigned_to (Properties in Jira Server):
    5. “defaultValue”: Assign the defaultValue:
    {
      "case": [
        {
          "reference": "incident",
          "definition": {
            "responsible": {
              "key": "assigned_to",
              "type": "FieldValue",
              "defaultValue": {
                 "id": 222,
                 "value": "id_usuario_jira_Server"
              }
            }
          }
        }
      ]
    }
    


    Tipos de relación o asociación de campos
    Los siguientes tipos de asociación determinan como se obtendrán los valores de las propiedades del ticket.

    Name Description Example
    Value Allows you to assign a value to the selected field through the configuration file. The value is required to be within the value ratio properties See example
    Mapper Seeks to associate and/or relate the values of the Aranda case with the values of the Jira Server Issue the field indicated in the key property in Jira Server, the relationship of values is made 1 to 1, the assignment is not allowed to be repeated See example
    FieldValue Property values are sent directly between platforms without any association/relationship See example


    Ejemplo tipo Value

    1. Set the value “incident” to the Reference.
    2. In the definition of the case Take the property Applicant (applicant) and assign the association type as Value.
    {
        "case": [
            {
              "reference": "incident",
              "definition": {
                "applicant": {
                  "type": "Value"
                }
              }
            }
      ]
    }
    
    1. The relationship implies that a value must be assigned in a common way for all the Cases, this is accomplished by using the “applicant” property, as shown below:
    {
        "case": [
            {
              "reference": "incident",
              "definition": {          
                "applicant": {
                  "type": "Value"
                }
              }
            }
      ],
      "applicant": [
            {
                "reference": "",
                "id": 10
            }
      ]
    }
    
    1. Assign a value to the property “applicant.reference”:
    {
        "case": [
            {
              "reference": "incident",
              "definition": {          
                "applicant": {
                  "type": "Value"
                }
              }
            }
      ],
      "applicant": [
            {
                "reference": "incident",
                "id": 10
            }
      ]
    }
    

    Note: The **Cases** associated with the “reference” “incident”, in ASMS they will be assigned the requester with ID 10.


    Type example Mapper

    1. Set the value “incident” to the Reference.
    2. In the definition of the case Take the property Applicant (applicant).
    3. “type”: Assign the association type as Mapper.
    4. “key”: Name the property in Jira Server as applicant_id_jira_Server (Properties in Jira Server).
    {
      "case": [
        {
          "reference": "incident",
          "definition": {
    
            "applicant": {
              "type": "Mapper",
              "key": "applicant_id_jira_Server"
            }
          }
        }
      ]
    }
    
    1. The relationship implies that you must associate the Aranda Desk Requestors (ASMS) with the Jira Server Requesters, it is recommended to write the Id of the applicant to be related, as shown below:
    {
      "case": [
        {
          "reference": "incident",
          "definition": {
    
            "applicant": {
              "type": "Mapper"
            }
          }
        }
      ],
      "applicant": [
        {
          "reference": "incident",
          "mapping": [
            {
              "id": 5,
              "value": "id_solicitante_jira"
            }
          ]
        }
      ]
    }
    


    Note: Requester with Aranda Table ID “5” (ASMS) is related to requestor “id_solicitante_jira” in Jira Server


    Type example FieldValue

    1. Set the value “incident” to the table.
    2. In the definition of the case Take the property Applicant (applicant).
    3. “type”: Assign the association type as FieldValue.
    4. “key”: Name the property in Jira Server as applicant_id_jira_Server (Properties in Jira Server).
    {
      "case": [
        {
          "reference": "incident",
          "definition": {
    
            "applicant": {
              "type": "FieldValue",
              "key": "applicant_id_jira_Server"
            }
          }
        }
      ]
    }
    


    ↩ Back to Settings