Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-72132

Automation for Jira third-party action throws ClassCastException when componentInputs.getIssues() is called in concurrent mode

      Issue Summary

      Automation for Jira third-party action throws ClassCastException when componentInputs.getIssues() is called in concurrent mode

      Steps to Reproduce

      1. Build and run the attached "automation-thirdparty-sample-customized.zip" project with "atlas-debug" command. It is a trivially modified version of the official Automation sample app provided by Atlassian (https://bitbucket.org/atlassian/automation-addon-sample/src/master/automation-thirdparty-sample/) and modify it as per the "App modification details" section below.
      2. Create three issues with keys: SP-1, SP-2, SP-3.
      3. Create a new automation rule. Use trigger type "Custom issue created trigger" and add one "New Sample Comment" action (both provided by the sample app). The comment should be "Hello dear!" to avoid some hard-coded error checking.
      4. Trigger the automation rule by creating a new issue.
      5. Check the Audit Log for the rule's log output.
      6. Check the Jira log.

      This bug only shows up if all of these conditions are true:

      • the third-party API is used: BOTH the trigger and the action is a third-party component
      • at least one issue returned by the trigger
      • concurrent action execution is requested via .executeConcurrently (which is the recommended method as stated in the API docs)

      App modification details:

      • CustomIssueCreatedTrigger.execute() method is modified in a way to always pass exactly three issues to the rule engine:

      AdditionalInputsResultBuilder builder = new AdditionalInputsResultBuilder();
      builder.withIssues(Arrays.asList(
      ComponentAccessor.getIssueManager().getIssueByKeyIgnoreCase("SP-1"),
      ComponentAccessor.getIssueManager().getIssueByKeyIgnoreCase("SP-2"),
      ComponentAccessor.getIssueManager().getIssueByKeyIgnoreCase("SP-3")
      ));

      • Additionally the trigger is modified to use concurrent mode:
        builder.executeConcurrently();

        Expected Results

      The rule execution is successful, no errors in the Jira log and the audit log.

      Actual Results

      The rule execution fails, error in the Jira log and the audit log.

      Workaround

      None

       

       

            [JRASERVER-72132] Automation for Jira third-party action throws ClassCastException when componentInputs.getIssues() is called in concurrent mode

            Aakrity Tibrewal made changes -
            Resolution New: Low Engagement [ 10300 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]
            Aakrity Tibrewal made changes -
            Labels New: cleanup-seos-fy25

            Atlassian Update - 14 April 2025

            Hi,

            At Atlassian, our goal is to ensure we’re providing the best experience for our customers. With our new Data Center strategy, Atlassian's focus is on security, compliance, and performance and is a key driver in prioritizing bugs. Closing the bugs that do not fall into those categories will allow us to focus on the ones in the most current versions of our products.

            This bug is being closed due to a lack of engagement in the last four years, including no new watchers, votes, or comments; this inactivity suggests a low impact.

            Please note the comments on this thread are not being monitored.

            You can read more about our bug fix policy here and how we prioritize bugs.

            To learn more about our recent investments in Jira Data Center, please check our public roadmap and dashboards containing recently resolved issues, current work, and future plans.

            Kind regards,
            Jira Data Center

            Aakrity Tibrewal added a comment - Atlassian Update - 14 April 2025 Hi, At Atlassian, our goal is to ensure we’re providing the best experience for our customers. With our new Data Center strategy, Atlassian's focus is on security, compliance, and performance and is a key driver in prioritizing bugs. Closing the bugs that do not fall into those categories will allow us to focus on the ones in the most current versions of our products. This bug is being closed due to a lack of engagement in the last four years , including no new watchers, votes, or comments; this inactivity suggests a low impact. Please note the comments on this thread are not being monitored. You can read more about our bug fix policy here and how we prioritize bugs. To learn more about our recent investments in Jira Data Center, please check our public roadmap and dashboards containing recently resolved issues , current work, and future plans . Kind regards, Jira Data Center
            Michał Gozdera made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Miro Capka made changes -
            Remote Link New: This issue links to "Page (Ecosystem Confluence)" [ 543356 ]
            Miro Capka made changes -
            Remote Link New: This issue links to "Page (Ecosystem Confluence)" [ 537242 ]
            Bugfix Automation Bot made changes -
            Introduced in Version New: 7.02
            Dugald Morrow created issue -

              Unassigned Unassigned
              dmorrow@atlassian.com Dugald Morrow
              Affected customers:
              3 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: