public class

ShouldDisplayIssueSectionCondition

extends Object
implements Condition
java.lang.Object
   ↳ com.atlassian.bitbucket.integration.jira.web.ShouldDisplayIssueSectionCondition

Class Overview

A condition which can be used to determine whether Jira issues should be shown.

This condition expects a "commit" in the context. It retrieves issue keys associated with the commit and, if there are any, returns true to display the associated UI component if there is a linked Jira instance. If there is no linked Jira instance, issues associated with the commit are ignored and this condition returns false.

Summary

Public Constructors
ShouldDisplayIssueSectionCondition(JiraService jiraService)
Public Methods
boolean hasJiraKeys(Map<StringObject> context)
Determines whether issue keys are available in the provided context.
void init(Map<StringString> initParams)
boolean shouldDisplay(Map<StringObject> context)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Public Constructors

public ShouldDisplayIssueSectionCondition (JiraService jiraService)

Public Methods

public boolean hasJiraKeys (Map<StringObject> context)

Determines whether issue keys are available in the provided context.

Parameters
context the context for the panel
Returns
  • true if issue keys are (or may be) present; otherwise, false

public void init (Map<StringString> initParams)

public boolean shouldDisplay (Map<StringObject> context)