@ExperimentalApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface CustomerNotificationSubscriptionService
|Modifier and Type||Method and Description|
Provides a URL that can be included in any customer email notifications.
Given a user and issue, return whether user should be sent new customer notifcations.
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> isSubscribedCustomerNotifications(CheckedUser recipient, com.atlassian.jira.issue.Issue issue)
If the user has followed the link returned by
then this should return false. Otherwise expected to return true if the user is the reporter or a request participant
of the specific issue. It may also return true if user has manually subscribed themselves to receive notifications
for this issue.
This is not a definitive answer, and can be ignored if notification is deemed important enough, but in general if returns false, then should consider this, the will of the recipient to not be notified.
recipient- The recipient to check, if should receive customer notifications
issue- The issue that in context
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,URI> getUnsubscribeCustomerNotificationUri(CheckedUser recipient, com.atlassian.jira.issue.Issue issue)
The link will allow customers to instruct the instance that they do not wish to receive further emails in regards to this specific issue
recipient- The user who will receive this email, and who then token within URL will be assigned to
issue- The issue that should URL will instruct to no longer notify if followed
Copyright © 2017 Atlassian. All rights reserved.