I got the value of each custom field of the numeric attribute in the jql query. When the acquired result variable (A) is displayed in the log, it has the following five values.
A = 5,2,3,6,7
I want to sum these 5 values, but what kind of smart value should I specify?
@青山 明 -
If the each value is coming from different fields, then you can conduct math expression "plus/minus" to return the Sum of them. Please refer to the following smart value reference page for your information - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/
Hope this helps.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team
Viasat Inc.
@青山 明 -
In JSM Cloud Automation, you can create a local variable in the rule, and you should be able to use it to pull in the each result and store it. Afterward conduct the sum of the local variable.
One more thing - What do you mean "a list of results from the same field"? please clarify. How did the field got populated with the value?
Please advise.
Best, Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.