When creating versions and components through the REST API, the 'archived' flag is consistently disregarded and is always interpreted as 'false'

XMLWordPrintable

    • 9.12
    • 1
    • Severity 3 - Minor

      Issue Summary

      To create versions or components, the request body can include the 'archived' value, which is a boolean type. However, it is important to note that this value is always processed as 'false'.

      Steps to Reproduce

      1. Create versions & components using REST API versions or components.
      2. Sample data
      3. {
            "name": "ExcellentComponent1",
            "description": "This is a Jira component for test",
            "leadUserName": "admin",
            "assigneeType": "PROJECT_LEAD",
            "isAssigneeTypeValid": false,
            "project": "KANBAN",
            "archived": true
        }
      1. {
            "description": "An excellent version for testing",
            "name": "excellentVersion",
            "archived": true,
            "released": true,
            "releaseDate": "2010-07-06",
            "project": "KANBAN"
        }
      1. The response will show that the versions and components were created with 'archived:false' flag.

      Expected Results

      It is important to either clarify that creating archived versions and components is not permitted, or to resolve the bug, as creating versions that are released indeed working.

      Actual Results

      Unable to create versions & components which are archived.

      Workaround

      • Create a versions & components and then send an update call to mark the same as archived

        1. image-2025-01-10-20-48-53-485.png
          344 kB
          Nikhil Janardhanan
        2. image-2025-01-10-20-49-09-580.png
          415 kB
          Nikhil Janardhanan

              Assignee:
              Unassigned
              Reporter:
              Nikhil Janardhanan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: