Class HasSubTaskCondition
java.lang.Object
com.atlassian.jira.plugin.viewissue.HasSubTaskCondition
- All Implemented Interfaces:
com.atlassian.plugin.web.api.baseconditions.BaseCondition,com.atlassian.plugin.web.Condition
Condition to test whether an issue has subtasks
- Since:
- v4.4
-
Constructor Summary
ConstructorsConstructorDescriptionHasSubTaskCondition(SubTaskManager subTaskManager, JiraAuthenticationContext authenticationContext) -
Method Summary
-
Constructor Details
-
HasSubTaskCondition
public HasSubTaskCondition(SubTaskManager subTaskManager, JiraAuthenticationContext authenticationContext)
-
-
Method Details
-
init
- Specified by:
initin interfacecom.atlassian.plugin.web.Condition- Throws:
com.atlassian.plugin.PluginParseException
-
shouldDisplay
- Specified by:
shouldDisplayin interfacecom.atlassian.plugin.web.Condition
-
getRequest
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.
-