Class MultiValueExtractor

java.lang.Object
com.codebarrel.automation.rulecomponent.jira.common.MultiValueExtractor

public class MultiValueExtractor extends Object
  • Constructor Details

    • MultiValueExtractor

      public MultiValueExtractor()
  • Method Details

    • extractValues

      public static List<String> extractValues(String value)
      Some field values can be rendered as lists like val1,val2,val3. A concrete example is if you're trying to link issues and use {{comment.body.match("([A-Z]+-\d+)")}} as the value. This will render as the string "KEY-1, KEY-2". This method will return a list of "KEY-1", "KEY-2".
      Parameters:
      value - the string value.
      Returns:
      A value list.