The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events