Jira Plugin user specific settings -


i've started writing first jira plugin , need implement user specific settings, ones returned this:

select * jiraschema.propertyentry entity_name = 'applicationuser' 

for able save global settings plugin using pluginsettingsfactory, need have different settings each user. know how implement such thing?

thank you.

i've found solution accessing applicationuser properties. here method, maybe helps someone:

    userpropertymanager userpropertymanager = componentaccessor.getuserpropertymanager();     string propvalue = null;      //get user specific property     propvalue = userpropertymanager.getpropertyset(componentaccessor.getjiraauthenticationcontext().getuser()).getasactualtype("workflow-mode").tostring();      //set new user specific prop     componentaccessor.getuserpropertymanager().getpropertyset(componentaccessor.getjiraauthenticationcontext().getuser()).setstring("my_new_prop_name", "my_new_prop_value"); 

Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -