1
0
-1
1 回答
- 210
SELECT e.property_key,n.propertyvalue from propertyentry e join propertynumber n on e.id=n.id where e.property_key = 'user.notify.own.changes';
SELECT * FROM propertyentry,cwd_user,propertystring WHERE propertyentry.entity_id = cwd_user.id AND propertyentry.property_key = 'jira.user.locale' AND propertystring.id = propertyentry.id
propertystring.propertyvalue カラム を修正すればできます。
既定の言語に変更にする場合は、propertystring、propertyentry レコードを削除する必要があります。
propertyentryテーブルの entity_name が "ApplicationUser" で
property_key が jira.user.*** または user.*** あたりは個別の設定レコードです。
タイムゾーンは jira.user.timezone 、自動ウォッチも同じように...
Java APIで変更する方法
/** * This script was succesfuly tested on JIRA 6.1 */ // import JIRA Component Accessor import com.atlassian.jira.component.ComponentAccessor // Create a new instance cA = new ComponentAccessor(); // Get all application users users = cA.getUserManager().getAllApplicationUsers(); // Loop on every user for(user in users){ // Get the UserPreferencesManager cA.getUserPreferencesManager() // Get user ExtendedPreferences .getExtendedPreferences(user) // Set notify own changes to true .setBoolean('user.notify.own.changes', true); }
ご参考になりましたら幸いです。
コメントを追加...
JIRAのプロフィール設定では
言語設定、タイムゾーン、自分の変更、自動ウォッチ ...etc
などをユーザーによって変更することができます。
数千人規模で使い始めるときに、予めJIRAデフォルト設定を変更したいことがあります。
どうにか一括で変更する方法ありますか?