Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-14104

Assets automation : Smart value {{object.Name}} returns label attribute instead of value from 'Name' attribute

      Issue Summary

      Using a smart value {{object.Name}} within a automation rules, always returns value from label attribute for the object.

      Steps to Reproduce

      1. Create a new ObjectType, by default 'Name' would be label attribute 
        Name Type Type Value
        Key Default Text
        Name (label) Default Text
        Created Default Date time
        Updated Default Date time
      1. Create a new 'Text' type attribute, let call it 'Tag'
      2. Make new 'Tag' as label attribute
        Name Type Type Value
        Key Default Text
        Name Default Text
        Created Default Date time
        Updated Default Date time
        Tag (label) Default Text
      1. Create a object with where both Name and Tag has different values
        Attribute Name Value
        Name Mac 1
        Tag Office
      1. Create a automation rule using lookupObject to find the object created in step#4 
      2. Use a log action to write the smart value {{object.Name}} 

      Expected Results

      • {{object.Name}} should print value from Name attribute, in example it should be 'Mac 1'

      Actual Results

      • {{object.Name}} is printing value from Tag attribute (which is label), in example it is returning 'Office'

      Workaround

      Change the 'Name' attribute to anything else, for example 'Names' or 'Appliance Name'. 

      OR

      • Add a Send Web Request action with the AQL API.
      • Use the following smart value to retrieve the attribute value
        {{#webresponse.body.values}} 
            {{#attributes}}
                {{#if(equals(objectTypeAttributeId, "99"))}}       
                    Name: {{objectAttributeValues.value}}
               {{/}}
            {{/}}
        {{/}}
        

      Replace "99" with the attribute ID related to the Name attribute in the object type.

            [JSDCLOUD-14104] Assets automation : Smart value {{object.Name}} returns label attribute instead of value from 'Name' attribute

            This is causing a great impact on us. Any ideas when it will be fixed?
            Thanks

            Fernando Tassinari [C] added a comment - This is causing a great impact on us. Any ideas when it will be fixed? Thanks

              Unassigned Unassigned
              3d70865c1864 Alim A.
              Affected customers:
              13 This affects my team
              Watchers:
              14 Start watching this issue

                Created:
                Updated: