Class IssueActionSupport

java.lang.Object
webwork.action.ActionSupport
All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
AbstractBrowser, AbstractBulkOperationAction, AbstractIssueSelectAction, AbstractPluggableTabPanelAction, ArchiveProject, DeleteGroup, DeleteProject, SearchDescriptionEnabledAction, ViewUser

public class IssueActionSupport extends ProjectActionSupport
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getIssueManager

      public IssueManager getIssueManager()
    • getCustomFieldManager

      public CustomFieldManager getCustomFieldManager()
    • getAttachmentManager

      public AttachmentManager getAttachmentManager()
    • getSearchRequest

      @Deprecated public SearchRequest getSearchRequest()
      Deprecated.
      Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.
      This method will return the one in the current search request, or return null if one does not exist
    • getCurrentJQL

      @Deprecated public String getCurrentJQL()
      Deprecated.
      Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.
      Reutrns the JQL representation of the curren search erquest in the session.
      Returns:
      the jql of the SearchRequest in the session, empty string otherwise.
    • setSearchRequest

      @Deprecated protected void setSearchRequest(SearchRequest searchRequest)
      Deprecated.
      Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. Since 7.1
      This method set the SearchRequest in the user's session
      Parameters:
      searchRequest - The seerachRequest to place in the session
    • getSessionSearchRequestManager

      @Deprecated protected SessionSearchRequestManager getSessionSearchRequestManager()
      Deprecated.
      Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. Since 7.1
    • getSessionSelectedIssueManager

      @Deprecated protected SessionSelectedIssueManager getSessionSelectedIssueManager()
      Deprecated.
      Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.
    • getSessionPagerFilterManager

      @Deprecated protected SessionPagerFilterManager getSessionPagerFilterManager()
      Deprecated.
      Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.
    • getSessionSearchRequestManagerFactory

      @Deprecated public SessionSearchObjectManagerFactory getSessionSearchRequestManagerFactory()
      Deprecated.
      Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.
    • updateSearchRequest

      protected void updateSearchRequest()
    • addIssueToHistory

      public void addIssueToHistory(Issue issueObj)
      Sets the current issue. This is similar to setting the current project - so that we can make things more convenient for users.
      Parameters:
      issueObj - The issue that you are currently viewing.
    • getPossibleVersions

      public List<VersionProxy> getPossibleVersions(Project project) throws Exception
      Returns a list of versions applicable to this issue (unreleased first).
      Throws:
      Exception
    • getPossibleVersionsReleasedFirst

      public List<VersionProxy> getPossibleVersionsReleasedFirst(Project project) throws Exception
      Returns a list of versions applicable to this issue (released first).
      Throws:
      Exception
    • getUrlEncoded

      public String getUrlEncoded(String s)
    • getWorkflow

      public com.opensymphony.workflow.Workflow getWorkflow()
    • getHoursPerDay

      public BigDecimal getHoursPerDay()
    • getDaysPerWeek

      public BigDecimal getDaysPerWeek()
    • isTimeTrackingEnabled

      public boolean isTimeTrackingEnabled()
    • getPrettyDuration

      public String getPrettyDuration(Long v)
      this formatting function is shared by the full view for navigator as well as view issue.
      Parameters:
      v - duration in seconds
    • setSelectedIssueId

      @Deprecated public void setSelectedIssueId(Long selectedIssueId)
      Since v4.2 this method invocation does nothing
      Parameters:
      selectedIssueId - id of the currently saelected issue
    • getSelectedIssueId

      @Deprecated public Long getSelectedIssueId()
      Deprecated.
      Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.
    • isCustomFieldHidden

      @Deprecated public boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId)
      Checks if the custom field is hidden in the project with id of projectId.
      Parameters:
      projectId -
      customFieldId - the data store id of the custom field
    • isFieldHidden

      @Deprecated public boolean isFieldHidden(Long projectId, String id, String issueTypeId)
      Checks if the field is hidden in the project with id of projectId.
      Parameters:
      projectId -
      id - fieldId
    • isFieldHidden

      public boolean isFieldHidden(Long projectId, String id, Integer issueTypeId)
    • getWorkflowTransitionDisplayName

      public String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
      Get the i18n'ed name of a workflow action (eg. 'Start Progress').
      Parameters:
      descriptor - Descriptor eg. from JiraWorkflow.getDescriptor()
    • getWorkflowTransitionDescription

      public String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
    • getLastLogin

      public String getLastLogin(ApplicationUser user)
      This can be called to get a description of the last time the user logged in
      Parameters:
      user - the user in play (not the current user but any user)
      Returns:
      a string of their last login time or a not recorded message
    • getPreviousLogin

      public String getPreviousLogin(ApplicationUser user)
      This can be called to get a description of the second last time the user logged in
      Parameters:
      user - the user in play (not the current user but any user)
      Returns:
      a string of their last login time or a not recorded message
    • getLastFailedLogin

      public String getLastFailedLogin(ApplicationUser user)
      This can be called to get a description of the last time the user failed to logged in
      Parameters:
      user - the user in play (not the current user but any user)
      Returns:
      a string of their last failed login time or a not recorded message
    • getLoginCount

      public String getLoginCount(ApplicationUser user)
      This can be called to get a the number of times the user logged in
      Parameters:
      user - the user in play (not the current user but any user)
      Returns:
      a string of their number of times they have logged in or a not recorded message
    • getCurrentFailedLoginCount

      public String getCurrentFailedLoginCount(ApplicationUser user)
      This can be called to get a the number of times the user currently failed to logged in
      Parameters:
      user - the user in play (not the current user but any user)
      Returns:
      a string of their number of times they have currently failed to logged in or a not recorded message
    • getTotalFailedLoginCount

      public String getTotalFailedLoginCount(ApplicationUser user)
      This can be called to get a the total number of times the user has failed to logged in
      Parameters:
      user - the user in play (not the current user but any user)
      Returns:
      a string of their total number of times they have failed to logged in or a not recorded message
    • isElevatedSecurityCheckRequired

      public boolean isElevatedSecurityCheckRequired(ApplicationUser user)
      True if the user requires an elevated security check on the next login
      Parameters:
      user - the user in play (not the current user but any user)
      Returns:
      true if the user requires an elevated security check on the next login
    • getEverLoggedIn

      public boolean getEverLoggedIn(ApplicationUser user)
      True if the user has ever logged in to JIRA
      Parameters:
      user - the user in play (not the current user but any user)
      Returns:
      true if they have ever logged into JIRA
    • getFormToken

      public String getFormToken()
    • setFormToken

      public void setFormToken(String formToken)
    • getCurrentDateTimeInUsersTimezone

      public String getCurrentDateTimeInUsersTimezone()
      This method returns YYYY/MM/dd HH:mm:ss string for logged in user using English locale. This date-time format is safe to be parsed on all versions of Chrome, Firefox and IE. The date is the current date-time of the logged in user as per timezone configured in that user's profile. It should be used to initialise both date-only and date-time fields.
      Returns:
      current date-time for logged in user.