Automation smart value math functions do not work on the Assets object and field Integer attributes

XMLWordPrintable

    • 2
    • 1

      Summary

      Automation functions don't work on the Assets attributes.

      The math functions don't work on the Assets object and field Integer attributes:

      Steps to Reproduce

      1. Add an Integer attribute to one of the object types and set a value for an object
      2. Create an automation rule that multiplies the amount by 10

      Expected Results

      Able to use the math function multiply:

      {{issue.AssetsCustomFieldName.AttributeName.multiply(10)}}
      OR {{object.AttributeName.AttributeName.multiply(10)}}

      Actual Results

      The math functions don't work on the Assets Integer attributes. The below smart value is empty:

      {{issue.AssetsCustomFieldName.AttributeName.multiply(10)}}
      {{issue.AssetsCustomFieldName.AttributeName.asNumber}} 

      While the below smart value returns the date:

      {{issue.AssetsCustomFieldName.AttributeName}}

      Workaround

      The following knowledge base article details workarounds for this bug as well as other automation functions impacted in a similar way: Workaround for using smart value functions with Assets data in Automations

      An example use of the workaround mentioned in the article:

      1. Create a variable "amount" to store the amount value:
        {{issue.AssetsCustomFieldName.AttributeName}}
      2. Then use the below functions on the variable name:
        {{amount.asNumber.multiply(10)}}

            Assignee:
            Michael Fedulov
            Reporter:
            Swati Kahol (Inactive)
            Votes:
            13 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: