How the function "setDouble" works?

Deleted user January 22, 2020

Hi everybody!

I try to set user property. My script works in Scriptrunner.

Code:

def userPropertyManager = ComponentAccessor.getUserPropertyManger();
userPropertyManager.getPropertySet(user).setDouble(propertyName, propertyValue);

and:

def userPropertyManager = ComponentAccessor.getUserPropertyManger();
userPropertyManager.getPropertySet(user).setString(propertyName, propertyValue);

First code doesn't work. Further, i checked type of propertyValue, and it was correct (i got it from JSON and cast it to double). I tried send clear double, for example:

setDouble(propertyName, 2.9)

 but it doesn't work.

And setString works correctly. 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events