startWatching working in Groovy and not working in plugin

Mihail July 24, 2017

Hello!

In groovy line

WatcherManager watcherManager = ComponentAccessor.getWatcherManager();
watcherManager.startWatching(applicationUser,issue);

works fine.
In plugin packaged with atlassian sdk - exception with "noSuchMethod: startWatching". 

How can it be? Imports are the same. Other methods from watcherManager are working on both sides. But startWatching - no.

If it is because of diffrent versions of atlas on prod (where jira is) and local (where sdk is), how can I add target and source with atlas-package? (googling not helped)

Thank you!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events