Hello,
I need a script to calculate the 4 custom fields and based on that calculation the result has to be updated in 1 single select custom field.
Below are the 4 custom fields with values Yes or No.
1. exposed services: Yes or No
Yes = 2, No = 0
2. Monitoring: Yes or No
Yes = 1, No = 0
3. Internet: Yes or No
Yes = 3, No = 0
4. Exploit: Yes or No
Yes = 4, No = 0
if the total calculation of 4 custom fields is as follows then based on the total count, as per the below calculations the values has to be updated in the 5th custom field named "Result"
- so, if the total count of these 4 custom fields value = 0 then it is "Rare"
- if total count = 1 or 2 or 3 then it is "Unlikey"
- if, total count = 4 or 5 or 6 then it is "likey"
- if, total count = 7 or 8 or 9 or 10 then it is "Very likey"
for example,
if total count of 4 custom fields (exposed =Yes, Monitoring = No, Internet = No, Exploit = no) so total count = 2,
then Result = Unlikely.
AS per the above i need a script for this, please help me out.
Thanks & Regards,
Jeevan