Interface TimeMetricMatchCondition
- All Superinterfaces:
TimeMetricCondition
An SLA condition can evaluate issue state
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(com.atlassian.jira.issue.Issue issue, SLAChangeEvent event) Evaluate the condition for a given issue and eventevaluateFromIssueHistory
(com.atlassian.jira.issue.Issue issue, org.joda.time.DateTime since, org.joda.time.DateTime until) Digs through issue history after a given moment in time when the condition matched the issue.getHistory
(com.atlassian.jira.issue.Issue issue, org.joda.time.DateTime until) Digs through issue history to reconstruct when the condition matched the issue.getId()
Get the unique id for this conditiongetNameHtml
(com.atlassian.jira.util.I18nHelper i18n) Get the name of this conditionMethods inherited from interface com.atlassian.servicedesk.spi.sla.condition.TimeMetricCondition
getName
-
Method Details
-
getId
String getId()Get the unique id for this condition -
getNameHtml
Get the name of this condition -
evaluate
Evaluate the condition for a given issue and event- Parameters:
issue
- an up-to-date issue objectevent
- a change event- Returns:
- a MatchEvent
-
getHistory
MatchConditionHistory getHistory(com.atlassian.jira.issue.Issue issue, org.joda.time.DateTime until) Digs through issue history to reconstruct when the condition matched the issue.- Parameters:
issue
- an up-to-date issue objectuntil
- process all change items before or equal to this date and time- Returns:
- a list of timestamped changes to this match condition, for this issue, up to the 'until' date, ordered by date
-
evaluateFromIssueHistory
MatchConditionHistory evaluateFromIssueHistory(com.atlassian.jira.issue.Issue issue, org.joda.time.DateTime since, org.joda.time.DateTime until) Digs through issue history after a given moment in time when the condition matched the issue.- Parameters:
issue
- an up-to-date issue objectsince
- process all change items after this date and timeuntil
- process all change items before or equal to this date and time- Returns:
- a list of timestamped changes to this match condition, for this issue, between the 'since' and 'until' dates, ordered by date
-