It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How the function "setDouble" works?

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you