Class ServiceUtils

java.lang.Object
com.atlassian.jira.service.util.ServiceUtils

@PublicApi public class ServiceUtils extends Object
  • Method Details

    • getIssue

      @Nullable @Deprecated public static org.ofbiz.core.entity.GenericValue getIssue(String key)
      Deprecated.
      Given an actual key - return the issue that matches that key, or null if no issues match that key.
    • getIssueObject

      @Nullable @Deprecated public static Issue getIssueObject(String key)
      Deprecated.
      Use IssueManager.getIssueObject(String) instead. Since v6.1.
      Given an actual key - return the issue that matches that key, or null if no issues match that key.
    • findIssueInString

      @Deprecated @Nullable public static org.ofbiz.core.entity.GenericValue findIssueInString(String searchString)
      Deprecated.
      Loops through the string and returns the issue that is found within, or null if there is no issue matching.

      It finds any string matching XXX-### and then looks it up to see if it is a valid issue. It will return the first valid issue that exists.

      Parameters:
      searchString - the string to search through for issues
      Returns:
      the issue that has been found, or null of one is not found.
    • findIssueObjectInString

      @Nullable public static Issue findIssueObjectInString(String searchString)
      Loops through the string and returns the issue that is found within, or null if there is no issue matching.

      It finds any string matching XXX-### and then looks it up to see if it is a valid issue. It will return the first valid issue that exists.

      Parameters:
      searchString - the string to search through for issues
      Returns:
      the issue that has been found, or null of one is not found.
    • findIssuesInString

      @Deprecated public static org.ofbiz.core.entity.GenericValue[] findIssuesInString(String searchString)
      Deprecated.
    • findIssueObjectsInString

      public static Iterable<Issue> findIssueObjectsInString(String searchString)
    • getParameterMap

      public static Map<String,String> getParameterMap(String parameterString)
      This method creates a map of parameters from a string.

      The format of the string is key=value, key=value, key=value.

      At the moment this is really only used for Handler parameters, but that whole area needs to be rewritten for JIRA 2.0.

    • toParameterString

      public static String toParameterString(Map<String,String> params)