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

      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.

          Form Name

            [JSWSERVER-14043] Triggered transitions fail if they have a HipChat post function

            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2855719 ] New: JAC Bug Workflow v3 [ 2937866 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v7 - Restricted [ 2542905 ] New: JAC Bug Workflow v2 [ 2855719 ]
            Ignat (Inactive) made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1553445 ] New: JIRA Bug Workflow w Kanban v7 - Restricted [ 2542905 ]
            Benjamin Morgan (Inactive) made changes -
            Component/s New: DVCS Accounts [ 43316 ]
            Labels Original: cloud New: cloud migrated_from_dcon
            Owen made changes -
            Key Original: DCON-487 New: JSW-14043
            Workflow Original: classic workflow for JIRA DVCS Connector [ 830648 ] New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1553445 ]
            Project Original: DCON - deprecated use JSW [ 14710 ] New: JIRA Software (including JIRA Agile) [ 12200 ]
            Marcus Silveira made changes -
            Regular Expression New: com.atlassian.labs.jira.workflow.HipChatPostFunction.execute\(HipChatPostFunction.java:\d+
            Rodrigo Berto made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 97549 ]
            Benjamin Morgan (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            Anatoli made changes -
            Link New: This issue was cloned as DCON-490 [ DCON-490 ]
            Anatoli made changes -
            Priority Original: Minor [ 4 ] New: Major [ 3 ]

              Unassigned Unassigned
              dwierzbicka Dobroslawa Wierzbicka (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: