Adapt InitJira init step to API change in the InitIts init step

With change [1] in plugins/its-base support for configuring branches
for the Jira integration during init was added. Due to this change the
InitIts init step needs to be adapted.

In addition update the example of the plugin initialisation in the
documentation because with change [1] there is now an additional
question during init for configuring the branches.


Change-Id: Ifcfd87dd1918f4db8960271f9717d139160085b2
Signed-off-by: Edwin Kempin <>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/jira/ b/src/main/java/com/googlesource/gerrit/plugins/hooks/jira/
index e3edba5..4280dad 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/hooks/jira/
+++ b/src/main/java/com/googlesource/gerrit/plugins/hooks/jira/
@@ -19,6 +19,7 @@
@@ -43,8 +44,9 @@
   InitJira(@PluginName String pluginName, ConsoleUI ui,
-      Section.Factory sections, AllProjectsConfig allProjectsConfig) {
-    super(pluginName, "Jira", ui, allProjectsConfig);
+      Section.Factory sections, AllProjectsConfig allProjectsConfig,
+      AllProjectsNameOnInitProvider allProjects) {
+    super(pluginName, "Jira", ui, allProjectsConfig, allProjects);
     this.pluginName = pluginName;
     this.sections = sections;
diff --git a/src/main/resources/Documentation/ b/src/main/resources/Documentation/
index 995f1d4..55087e9 100644
--- a/src/main/resources/Documentation/
+++ b/src/main/resources/Documentation/
@@ -147,6 +147,7 @@
     Issue tracker integration for all projects? [DISABLED/?]: enabled
+    Branches for which the issue tracker integration should be enabled (ref, ref pattern or regular expression) [refs/heads/*]:
     *** Jira connectivity