Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Field Name: WSJF
- // Number Searcher field
- // Sum (Business Value, Time Criticality, Risk Reduction) divided by (Duration) assuming when Duration is entered 0, it will take 1 else it will take actual Duration value
- def bv = getCustomFieldValue("Business Value")
- def tc = getCustomFieldValue("Time Criticality")
- def rr = getCustomFieldValue("Risk Reduction")
- def dur = getCustomFieldValue("Duration")
- if(dur != 0)
- {
- return new Double((bv + tc + rr)/dur)
- }
- else
- {
- return new Double((bv + tc+ rr)/1)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement