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

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

XMLWordPrintable

    • 5
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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)}}

              7260236ab89d Justin King
              skahol Swati Kahol
              Votes:
              9 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: