Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-91672

Deployment data removed when removing apps to integrate with CI/CD tools

      Issue Summary

      When uninstalling an app to integrate with Deployment tools, like for example  Octopus Deploy, all the Deployment data stored in Jira is removed.

      Reinstalling the app doesn't work since the app is only sending data to Jira using the Submit deployment data (POST /deployments/0.1/bulk) when a new deployment occurs, but there is no logic to send data related to previous deployments to Jira.

      Now, if this is expected behavior it should be EXPLICITLY mentioned in the endpoint or development documentation:

       

      Without having this behavior documented, app developers cannot possibly know they have to implement a back-filling mechanism for their apps.

       

      This is reproducible not on Data Center.

      Steps to Reproduce

      1. Establish connection between Octopus Deploy and Jira
      2. Enable deployments for a Jira project
      3. Install and enable Jira plugin for Octopus Deploy
      4. Create issue for project (i.e. TEST-1)
      5. Commit code changes to source repo that resolves issue (i.e. TEST-1)
      6. Create release and deployment
      7. View deployment data in Jira
      8. Uninstall and reinstall Jira plugin for Octopus Deploy

      Expected Results

      The deployment data for the issue (TEST-1) is still there

      Actual Results

      The deployment information is lost forever

      Workaround

      There's no workaround available at the moment

            [JRACLOUD-91672] Deployment data removed when removing apps to integrate with CI/CD tools

            Karina added a comment - We have updated all documentation for connect and Oauth apps integrating with DevOps APIs adding explicitly information about the data deletion when apps gets uninstalled or Oauth credentials get deleted.   https://developer.atlassian.com/cloud/jira/software/getting-started-open-devops/#step-2--get-the-access-token https://developer.atlassian.com/cloud/jira/software/open-devops/#why-should-you-be-part-of-the-jira-open-devops-experience- https://developer.atlassian.com/cloud/jira/software/modules/development-tool/   https://developer.atlassian.com/cloud/jira/software/modules/deployment/ https://developer.atlassian.com/cloud/jira/software/modules/build/ https://developer.atlassian.com/cloud/jira/software/modules/feature-flag/ https://developer.atlassian.com/cloud/jira/software/modules/remote-link/  

              kmoraesdasilva Karina
              dbonotto Dario B
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated: