Class ImportUtils

java.lang.Object
com.atlassian.jira.util.ImportUtils

public class ImportUtils extends Object
Utility code originally written to support various importers. Contains methods for bypassing security schemes, reindexing issues, creating new issue types, resolutions, custom fields, and various other useful bits of code.

It's used by JIM (JIRA Importers Plugin)

  • Method Details

    • setSubvertSecurityScheme

      public static void setSubvertSecurityScheme(boolean subvert)
      Whether to subvert the security scheme or not. This is done on a thread local basis, so the subversion only occurs for this thread / request.

      Other classes may alter their behaviour based on the value you pass.

      Parameters:
      subvert - Whether to subvert the scheme or not.
    • isSubvertSecurityScheme

      public static boolean isSubvertSecurityScheme()
    • setIndexIssues

      public static void setIndexIssues(boolean index)
    • setEnableNotifications

      public static void setEnableNotifications(boolean enable)
    • isEnableNotifications

      public static boolean isEnableNotifications()
    • isIndexIssues

      public static boolean isIndexIssues()
    • stripHTMLStrings

      public static String stripHTMLStrings(String str)
      Remove any HTML from text contents.
      Parameters:
      str - Text with HTML (eg <a href="...">..</a> links).
      Returns:
      str without HTML