Commits

Bob Swift committed 86f44a9

GINT-59: Add limitProjectKey JIRA

Comments (0)

Files changed (1)

src/main/groovy/org/swift/tools/GintForJira.groovy

     }
 
     /**
+     * Limit the size of the project key. Later versions of JIRA limit to 10, but there are discussions about increasing that
+     */
+    public void limitProjectKey(int length = 10) {
+        setProjectKey(helper.abbreviateText(getProjectKey(), length))
+    }
+
+    /**
      * Override this so default gets set automatically in initialize after properties have been read
      * @return current command generator
      */