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
Post a Comment