Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-14043

Triggered transitions fail if they have a HipChat post function

    XMLWordPrintable

Details

    Description

      summary

      If a transition has a Post Function to send a notification to HipChat, it will fail when it's triggered by a DVCS trigger (Configuring workflow triggers), it will fail.

      steps to reproduce
      1. set up DVCS and HipChat integrations in JIRA;
      2. edit a workflow transition and add to it:
        • a trigger, e.g. 'Branch created';
        • a 'Notify HipChat' Post Function,
          and save and publish the workflow;
      3. in an issue using the workflow, click Create branch in the Development panel.

      Expected result: new branch is created, the issue is transitioned, and a HipChat notification is sent.

      Actual result: new branch is created, but the transition isn't executed.

      Erros in JIRA logs:

      2015-02-13 16:02:54.359267500 2015-02-13 16:02:54,356 DVCSConnector.EventService:thread-1 ERROR sysadmin 1243x10424x1 x1kfb4 46.243.25.78,131.103.26.161 /secure/admin/AddBitbucketOrganization!finish.jspa [atlassian.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 41 from workflow 10507 on issue 'WB-3'
      2015-02-13 16:02:54.359269500 java.lang.NullPointerException
      2015-02-13 16:02:54.359270500 	at com.atlassian.labs.jira.workflow.HipChatPostFunction.execute(HipChatPostFunction.java:75)
      2015-02-13 16:02:54.359270500 	at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
      2015-02-13 16:02:54.359287500 	at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
      2015-02-13 16:02:54.359287500 	at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:564)
      
      2015-02-13 16:02:54.438269500 2015-02-13 16:02:54,436 DVCSConnector.EventService:thread-1 ERROR sysadmin 1243x10424x1 x1kfb4 46.243.25.78,131.103.26.161 /secure/admin/AddBitbucketOrganization!finish.jspa [triggers.impl.transition.WorkflowTriggerTransitionProcessor] aae6b897-18ee-4f8c-9ea4-de475a4b6a5b Failed to perform transition 41 for issue WB-3: Errors: {}
      2015-02-13 16:02:54.438272500 Error Messages: [null]
      

      (full messages here: trigger_log_errors.log)

      JIRA UI doesn't display any errors, but when viewing the workflow, go to the affected transition, and in the Trigger tab click View details to see the failed transition:

      workaround
      • Remove the HipChat Post Function from the transition;
      • manually execute the transition - it will send the notification as expected.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dwierzbicka Dobroslawa Wierzbicka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: