How do I automatically calculate a value for an attribute?
I am using RTC for a Risk log.
I currently have 3 risk attributes (impact, cost and time) which are scored 1-5 for severity and an attribute for the likelihood that the risk will occur (again scored 1-5)
How can I create an attribute which will automatically provide an overall score? Ideally this would be: the average of the 3 risk attributes multiplied by the likelihood score: ( (impact value + cost value + time value)/3 )*likelihood value.
Thanks in advance.
James
I currently have 3 risk attributes (impact, cost and time) which are scored 1-5 for severity and an attribute for the likelihood that the risk will occur (again scored 1-5)
How can I create an attribute which will automatically provide an overall score? Ideally this would be: the average of the 3 risk attributes multiplied by the likelihood score: ( (impact value + cost value + time value)/3 )*likelihood value.
Thanks in advance.
James
2 answers
Hi James,
have you explored
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Script_based_calculated_values
there are a few script samples which calculate and return a value to the applied attribute based on certain other attributes.
These other attributes are referred to in the dependent attributes section, so any change in their value results in recalculations.
As i see, you have 4 enumeration attributes and they decide the value on the overall score attribute.
So, you would write a Calculated Value script and apply it on OverallScore attribute.
The script would read the values from other enum attributes and compute/calculate the return value.
The other attributes would be selected under the dependent attributes section of OverallScore attribute.
You could use the samples in the link above for reading values and computing the results.
hope this helps
have you explored
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Script_based_calculated_values
there are a few script samples which calculate and return a value to the applied attribute based on certain other attributes.
These other attributes are referred to in the dependent attributes section, so any change in their value results in recalculations.
As i see, you have 4 enumeration attributes and they decide the value on the overall score attribute.
So, you would write a Calculated Value script and apply it on OverallScore attribute.
The script would read the values from other enum attributes and compute/calculate the return value.
The other attributes would be selected under the dependent attributes section of OverallScore attribute.
You could use the samples in the link above for reading values and computing the results.
hope this helps
Comments
showing 5 of 6
show 1 more comments
Have you looked at using calculated Values? About 1/2 way down in this article (https://jazz.net/library/article/1003) it talks about calculating the Age using JavaScript.
S
S
Comments
Susan Hanson
Dec 09 '15, 8:38 a.m.