Problem with script conditions in our workflow (cf value > 1000)

Björn Thebbe March 12, 2018

Hello together,

after our update to Jira v7.8.0 our post function does not work correctly. We had to delete our condition because it causes some errors in our workflow. Now we need a new condition to check whether a value is above 1000.

We tried a script condition but get an error:

cfValues['Amount in €'] > 1000

 

How can I add a condition which checks the custom field value?

 

Thank you very much.

 

1 answer

0 votes
Vasiliy Zverev
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.
March 12, 2018

Try this one:

cfValues['Amount in €'] > 1000.0D

Björn Thebbe March 12, 2018

I still get an error: Cannot find matching method java.lang.Object#compareTo(Double)

Vasiliy Zverev
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.
March 12, 2018

Lets try this one:

(double) cfValues['Amount in €'] > 1000.0D

Suggest an answer

Log in or Sign up to answer