Jira插件用户特定设置
我刚刚开始编写我的第一个JIRA插件,我需要实现一些特定于用户的设置,如以下返回的设置:Jira插件用户特定设置,jira,jira-plugin,Jira,Jira Plugin,我刚刚开始编写我的第一个JIRA插件,我需要实现一些特定于用户的设置,如以下返回的设置: select * from jiraschema.propertyentry where ENTITY_NAME = 'ApplicationUser' 目前,我只能使用PluginSettingsFactory为插件保存全局设置,但我需要为每个用户设置不同的设置。有人知道如何实现这样的事情吗 谢谢。我找到了访问应用程序用户属性的解决方案。这是我的方法,也许它对某人有帮助: UserPropert
select * from jiraschema.propertyentry where ENTITY_NAME = 'ApplicationUser'
目前,我只能使用PluginSettingsFactory为插件保存全局设置,但我需要为每个用户设置不同的设置。有人知道如何实现这样的事情吗
谢谢。我找到了访问应用程序用户属性的解决方案。这是我的方法,也许它对某人有帮助:
UserPropertyManager userPropertyManager = ComponentAccessor.getUserPropertyManager();
String propValue = null;
//get a user specific property
propValue = userPropertyManager.getPropertySet(ComponentAccessor.getJiraAuthenticationContext().getUser()).getAsActualType("workflow-mode").toString();
//set a new user specific prop
ComponentAccessor.getUserPropertyManager().getPropertySet(ComponentAccessor.getJiraAuthenticationContext().getUser()).setString("my_new_prop_name", "my_new_prop_value");