Math operator * with multiple smart values, within a loop does not work.

XMLWordPrintable

    • Minor
    • Jira Software

      Issue Summary

      Using a math operator * with multiple smart values within a loop does not work.

      For example: 

      • #varLoopValues.rightPad(varLoopValues.length.plus(cycles), "X").remove("NULL").replaceAll("X","X,").substringBeforeLast(",").split(",")#=smartvalue1*smartvalue2/^last,/{
        Unknown macro: {/}

        }

      The same works, if we have one of the smartvalues defined as it is:

      • #varLoopValues.rightPad(varLoopValues.length.plus(cycles), "X").remove("NULL").replaceAll("X","X,").substringBeforeLast(",").split(",")#=smartvalue1*50{{/}}^last,/{
        Unknown macro: {/}

        }

      Steps to Reproduce

      1. Have the initial value defined as Null for varLoopValue.
      2. Have 2 smart values defined with numeric values i.e smartvalue1 and smartvalue2
      3. #varLoopValues.rightPad(varLoopValues.length.plus(cycles), "X").remove("NULL").replaceAll("X","X,").substringBeforeLast(",").split(",")#=smartvalue1*smartvalue2/^last,/{
        Unknown macro: {/}

        }

      Expected Results

      Should work similar to the one with with fixed value of 50 or any numeric value.

      Actual Results

      The below exception is thrown in the xxxxxxx.log file:

      Results in Unable to render smart values when executing this rule: Missing parameter(s) for operator *: 0* 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Assignee:
              Unassigned
              Reporter:
              Danish Magrey
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: