public final class

DashboardItemPropertyConditionHelper

extends AbstractEntityPropertyConditionHelper<T extends WithId>
java.lang.Object
   ↳ com.atlassian.jira.entity.property.AbstractEntityPropertyConditionHelper<T extends com.atlassian.jira.entity.WithId>
     ↳ com.atlassian.jira.bc.dashboard.item.property.DashboardItemPropertyConditionHelper

Summary

Public Constructors
DashboardItemPropertyConditionHelper(DashboardItemPropertyService propertyService)
Public Methods
Optional<Long> getEntityId(JiraWebContext context)
This implementation expects to find the entity of the class T in the context by the "entityName" key.
[Expand]
Inherited Methods
From class com.atlassian.jira.entity.property.AbstractEntityPropertyConditionHelper
From class java.lang.Object
From interface com.atlassian.jira.entity.property.EntityPropertyConditionHelper

Public Constructors

public DashboardItemPropertyConditionHelper (DashboardItemPropertyService propertyService)

Public Methods

public Optional<Long> getEntityId (JiraWebContext context)

This implementation expects to find the entity of the class T in the context by the "entityName" key. ID is then taken directly from this entity.

Parameters
context - context of the web element for which the condition is evaluated.
Returns
  • ID of the entity taken from context or empty.