Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // Field Name: WSJF
  2. // Number Searcher field
  3. // 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
  4.  
  5.  
  6. def bv = getCustomFieldValue("Business Value")
  7. def tc = getCustomFieldValue("Time Criticality")
  8. def rr = getCustomFieldValue("Risk Reduction")
  9. def dur = getCustomFieldValue("Duration")
  10.  
  11. if(dur != 0)
  12. {
  13. return new Double((bv + tc + rr)/dur)
  14. }
  15. else
  16. {
  17. return new Double((bv + tc+ rr)/1)
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement