@ExperimentalSpi @ParametersAreNonnullByDefault public interface ServiceDeskEmailReplyMatcher
Implementations of this, will be included when CUSTOM Email Reply (comment) Stripping is enabled for service projects, and invoked initially on the text part of the email body, and additionally on the converted wiki markup version of the content, if this conversion is also enabled for service projects.
Modifier and Type | Method and Description |
---|---|
boolean |
shouldStripText(List<String> textBlock)
Evalute the current text block and return whether the message should be stripped from this point onwards.
|
default boolean |
shouldStripTextOnIssueCreation(List<String> textBlock)
Same as
shouldStripText(List) but when this matcher is executed on issue creation. |
boolean shouldStripText(@Nonnull List<String> textBlock)
A maximum of 5 lines of text will be provided at a time, until the end of the message, moving down 1 line at a time. For example:
First invocation
One thing to note is that the implementation should ideally handle the text and potential wiki markup versions of the message content, as while every effort is made to accurately line up a stripped text mail part with it's html mail part equivalent before performing the wiki markup conversion, this is not always possible. Hence, the requirement to support a second flow through the stripping matchers on the wiki markup.
textBlock
- contains up to 5 lines of textdefault boolean shouldStripTextOnIssueCreation(@Nonnull List<String> textBlock)
shouldStripText(List)
but when this matcher is executed on issue creation.
By default this will return false, as Email Reply Matchers were originally intended only for comment matching.
However if would like your implementation to also execute on issue creation (ie. description) then implement this method.
textBlock
- contains up to 5 lines of textCopyright © 2021 Atlassian. All rights reserved.