Uploaded image for project: 'Migration Platform'
  1. Migration Platform
  2. MIG-1854

Migration Task status API returns incorrect progress

    • 2
    • Severity 2 - Major
    • 6

      Issue Summary

      The Migrations API for getting the status of a task always returns progress “0” or “100” even though the migration in JCMA’s UI reports it accurately.

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Create a project on Jira DC (UI or REST API - regardless)
      2. Create a migration and run it following the ritual described here: Migrate Jira or # Confluence from on-premises to cloud using APIs
      3. Invoke repeatedly the status API with a similar request:
        curl --location 'https://api.atlassian.com/migrations/public/v1/jobs/3acbd842-1f9a-428c-ab04-0e0e115d547c/tasks/0000018e-8ab0-2a47-9503-89f2b99cc9e6/status' \
        --header 'Authorization: Basic XXXXXX=' \
        --header 'Cookie: XXXXXXXXX' \
        --data ''
        

      Expected Results

      The API response “progress” value should accurately reflect the one observed in Jira’s UI

      Actual Results

      The progress while the task is in “IN_PROGRESS” state never changes.

      The progress is always "0" while the task is running:
      {
      "data": {
      "status": "IN_PROGRESS",
      "message": "Migration is in progress",
      "details":

      { "createdAt": 1711723795258, "lastUpdatedAt": 1711723802707, "startedAt": 1711723802707 }

      ,
      "progress": 0
      },
      "links": {}
      }

      Response when the task is complete:
      {
      "data": {
      "status": "FINISHED",
      "outcome": "SUCCESS",
      "details":

      { "createdAt": 1711723795258, "lastUpdatedAt": 1711724121210, "startedAt": 1711723802707 }

      ,
      "progress": 100
      },
      "links": {}
      }

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

          Form Name

            [MIG-1854] Migration Task status API returns incorrect progress

            Aksh Patel added a comment - https://developer.atlassian.com/platform/migration-api/guides/progress-details-examples/

            We have added support for the progress in MAPI. Checkout this DAC: https://developer.atlassian.com/platform/migration-api/guides/progress-details-examples/

            So marking it as closed.

            Aksh Patel added a comment - We have added support for the progress in MAPI. Checkout this DAC: https://developer.atlassian.com/platform/migration-api/guides/progress-details-examples/ So marking it as closed.

            71f1dad54ffe Please help changing the type of this ticket to Suggestion from Bug as this is a planned feature already in upcoming MAPI GA

            Vikram Jere (Inactive) added a comment - 71f1dad54ffe Please help changing the type of this ticket to Suggestion from Bug as this is a planned feature already in upcoming MAPI GA

            MAPI is in BETA and this issue is a planned feature in GA. Traiging it to short term backlog. 

            Vikram Jere (Inactive) added a comment - MAPI is in BETA and this issue is a planned feature in GA. Traiging it to short term backlog. 

            Aksh Patel added a comment - - edited

            71f1dad54ffe Can you please look at the below comment?
            Also can you please guide what we should do with this ticket since its not a bug but a feature gap and we are working on introducing this feature soon.

            Aksh Patel added a comment - - edited 71f1dad54ffe Can you please look at the below comment? Also can you please guide what we should do with this ticket since its not a bug but a feature gap and we are working on introducing this feature soon.

            Aksh Patel added a comment - - edited

            Currently MAPI is not supporting progress reporting. It just shows 0% (in progress)/ 100 %(completed).

            We will be releasing the progress update support in GA.

            Epic Link: https://hello.jira.atlassian.cloud/browse/MAPI-598

            Aksh Patel added a comment - - edited Currently MAPI is not supporting progress reporting. It just shows 0% (in progress)/ 100 %(completed). We will be releasing the progress update support in GA. Epic Link: https://hello.jira.atlassian.cloud/browse/MAPI-598

              Unassigned Unassigned
              71f1dad54ffe Wagner M.
              Affected customers:
              2 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: