Hi
We are currently in the migration process and i am trying to re-write a script runner field in cloud. There is a xyz custom fields which tells the total of all these below fields.
Script in on-prem:
def NewCustomers = getCustomFieldValue("Direct sales potential new customers") as Float
def ExistingCustomers = getCustomFieldValue("Direct sales potential existing customers") as Float
def Prerequisite = getCustomFieldValue("Feature is a prerequisite for sales to new/existing customers") as Float
def Impact = getCustomFieldValue("Strategic Impact ATOSS") as Float
def Maintenance = getCustomFieldValue("Maintenance downtime/escalation") as Float
def COS = getCustomFieldValue("COS - Reduction of operating expenses") as Float
def CSS = getCustomFieldValue("CSS - Reduction of implementation effort") as Float
return (0.15 * (NewCustomers ?: 0) +
0.15 * (ExistingCustomers ?: 0) +
0.15 * (Prerequisite ?: 0) +
0.25 * (Impact ?: 0) +
0.10 * (Maintenance ?: 0) +
0.10 * (COS ?: 0) +
0.10 * (CSS ?: 0)
)
in the above section all are the custom fields with number text field.
I am having problems to migrate it and showing the total number of the fields.
Thanks