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

public class HasSubTaskCondition extends Object implements com.atlassian.plugin.web.Condition
Condition to test whether an issue has subtasks
Since:
v4.4
  • Constructor Details

  • Method Details

    • init

      public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
      Specified by:
      init in interface com.atlassian.plugin.web.Condition
      Throws:
      com.atlassian.plugin.PluginParseException
    • shouldDisplay

      public boolean shouldDisplay(Map<String,Object> context)
      Specified by:
      shouldDisplay in interface com.atlassian.plugin.web.Condition
    • getRequest

      protected jakarta.servlet.http.HttpServletRequest getRequest(Map<String,Object> 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.