code: public static String getAlias(String queryString) {
          Matcher m = ALIAS_PATTERN.matcher(queryString);
          return m.find() ? m.group(1) : null;
      }
docs: Gets the alias of root entity of JQL query
  
  @param queryString JQL query
  @return alias of root entity.