Merge "Support to enable/disable the Jira integration in the UI"
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/jira/ b/src/main/java/com/googlesource/gerrit/plugins/hooks/jira/
index 8448ac3..5677556 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/hooks/jira/
+++ b/src/main/java/com/googlesource/gerrit/plugins/hooks/jira/
@@ -20,6 +20,7 @@
@@ -32,12 +33,14 @@
   private final String pluginName;
   private final Config gerritConfig;
+  private final PluginConfigFactory pluginCfgFactory;
-  public JiraModule(@PluginName final String pluginName,
-      @GerritServerConfig final Config config) {
+  public JiraModule(@PluginName String pluginName,
+      @GerritServerConfig Config config, PluginConfigFactory pluginCfgFactory) {
     this.pluginName = pluginName;
     this.gerritConfig = config;
+    this.pluginCfgFactory = pluginCfgFactory;
@@ -46,7 +49,7 @@"JIRA is configured as ITS");
       bind(ItsFacade.class).toInstance(new JiraItsFacade(pluginName, gerritConfig));
-      install(new ItsHookModule());
+      install(new ItsHookModule(pluginName, pluginCfgFactory));
diff --git a/src/main/resources/Documentation/ b/src/main/resources/Documentation/
index 55087e9..c11aec4 100644
--- a/src/main/resources/Documentation/
+++ b/src/main/resources/Documentation/
@@ -29,6 +29,12 @@
 a project can enforce the Jira integration for all child projects by
 setting `plugin.its-jira.enabled` to `enforced`.
+On the project info screen there is a dropdown list for the
+`plugin.its-jira.enabled` parameter which offers the values `true`,
+`false`, `enforced` and `INHERIT`. Project owners can change this
+parameter and save it. If the Jira integration is enforced by a parent
+project the dropdown list is disabled.
 The Jira integration can be limited to specific branches by setting
 `plugin.its-jira.branch`. The branches may be configured using explicit
 branch names, ref patterns, or regular expressions. Multiple branches