Averroes
Averroes

Reputation: 4228

Get notification's email from issue

There is any way to know by code the email associated to the Notification given a issue?

enter image description here

I tried

ComponentAccessor.getNotificationSchemeManager().getNotificationSchemeForProject(issue.getProject())

This gives me the Notification Scheme (COGP_NPS_SERVICEDESK) but I cannot find any property there that give me the email ([email protected] in my example).

Upvotes: 1

Views: 85

Answers (1)

Averroes
Averroes

Reputation: 4228

I found it!

issue.getProjectObject().getEmail()

Upvotes: 1

Related Questions