Add Watchers on Transition Not Working

Issue #340 resolved
Slane created an issue

We're currently trialing your plugin (and intend to purchase it if we can get this working), but we're having a problem adding watchers on transition. I have a post function on the create transition that is supposed to add watchers to the issue if the priority is a specific priority. A screenshot of the configuration is attached. It seems like it's trying to add the watchers, as I see the following in the logs:

2016-06-16 09:23:42,935 http-nio-8080-exec-25 ERROR a.slane 563x10818x1 1t9qr3u 217.8.58.165 /secure/WorkflowUIDispatcher.jspa [c.f.j.p.workflowToolbox.shared.ReflectionHelper] *** Object o: com.atlassian.jira.issue.watchers.DefaultWatcherManager@44be7cb8; Method method: public abstract com.atlassian.jira.issue.Issue com.atlassian.jira.issue.watchers.WatcherManager.startWatching(com.atlassian.jira.user.ApplicationUser,com.atlassian.jira.issue.Issue); Object... arguments: [Ljava.lang.Object;@11223dcb

It says ERROR there though, and the watchers are never added. All of the watchers I'm attempting to add are assigned a project role in the project. Any ideas what we're doing wrong?

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi Andrew,

    First of all, thanks for your interest in JIRA Workflow Toolbox.

    Can you please attach a screenshot of post-function's tab in your "Create Issue" transition? I would like to see all the post-function and the execution order.

    Which version of JIRA are you using?

  2. Slane reporter

    Ah! It was being fired before the issue was created... No wonder there was an error. Now it's working. That's kinda embarassing... I'm a bit new to JIRA haha. Thanks so much for the quick response!

  3. Log in to comment