public class

HasSubTaskCondition

extends Object
implements Condition
java.lang.Object
   ↳ com.atlassian.jira.plugin.viewissue.HasSubTaskCondition

Class Overview

Condition to test whether an issue has subtasks

Summary

Public Constructors
HasSubTaskCondition(SubTaskManager subTaskManager, JiraAuthenticationContext authenticationContext)
Public Methods
void init(Map<StringString> params)
boolean shouldDisplay(Map<StringObject> context)
Protected Methods
HttpServletRequest getRequest(Map<StringObject> context)
Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Public Constructors

public HasSubTaskCondition (SubTaskManager subTaskManager, JiraAuthenticationContext authenticationContext)

Public Methods

public void init (Map<StringString> params)

public boolean shouldDisplay (Map<StringObject> context)

Protected Methods

protected HttpServletRequest getRequest (Map<StringObject> context)

Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses. It tries to get it from: the context passed in (jirahelper or request), then from ExecutingHttpRequest, and then from the ActionContext

Parameters
context the context passed into the getContextMap method.
Returns
  • the current request.