Class IssueOperationsHelper

java.lang.Object
com.atlassian.greenhopper.web.rapid.issue.operations.IssueOperationsHelper

@Service public class IssueOperationsHelper extends Object
Provides issue actions defined for a given issue. Used by the rapid board as well as the legacy boards (in that case for the dot dialog issue operations only)
  • Constructor Details

    • IssueOperationsHelper

      public IssueOperationsHelper()
  • Method Details

    • buildOperationsModel

      public IssueOperationsModel buildOperationsModel(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue)
      Builds an operations model that contains all available operations for a the given issue
      Parameters:
      issue -
    • getIssueOperations

      public Collection<com.atlassian.jira.plugin.webfragment.model.SimpleLink> getIssueOperations()
      NOTE: Code is a copy from public com.atlassian.jira.web.action.issue.IssueNavigator.getIssueOperations()

      Used for the dot dialog functionality. The way the keyboard shortcuts work is that they click on hidden links (generated out of the data provided by this method), the listeners attached to those links then get the issue id/key from somewhere, take the url from the link and replace the id placeholder with the real id. the real url and issue id is then passed as ajaxOptions to the dialogs that then load the resulting urls, which gives the content htlm for the form.