Script runner: Has custom field value equal to

Tshepo November 1, 2012

Hi

I want a script that will send a notifications on based on a custom field where the value exceed required amount it trigger and send email.

i have tried this option (cfValues['Estimated Value'] >= 1000) bt it doesnt work?

1 answer

1 accepted

1 vote
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 1, 2012

By "doesn't work" I presume you mean you get a class cast exception, because there is no integer custom field in jira?

Try

((cfValues[' Estimated Value '] ?: 0) as Integer) >= 1000

Tshepo November 1, 2012

Fantastic..it works.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events