Class JiraWebActionSupportEvent

java.lang.Object
com.atlassian.jira.event.web.action.JiraWebActionSupportEvent
Direct Known Subclasses:
ProjectImportWebAnalyticsEvent

public abstract class JiraWebActionSupportEvent extends Object
Abstract event that can be used to capture analytics in subclasses of JiraWebActionSupport. The event will include the command that triggered the event, global error messages and form errors.
  • Constructor Details

    • JiraWebActionSupportEvent

      public JiraWebActionSupportEvent(JiraWebActionSupport jiraWebActionSupport)
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns:
      true when the action doesn't have a command, doesn't have error message and has no form errors.
    • getCommand

      public String getCommand()
      Returns:
      analytics property "command"
    • getErrorMessages

      public Collection<String> getErrorMessages()
      Returns:
      analytics property errorMessages, use "errorMessages.size" and "errorMessages[0]" in the whitelist.
    • getFormErrors

      public Map<String,String> getFormErrors()
      Returns:
      analytics property formErrors, use "formErrors.size" in the whitelist.