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

editmeta REST API returns archived versions as valid options

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 8.5.7, 8.13.5, 8.18.0
    • REST API
    • None

    Description

      Issue Summary

      When running the editmeta REST API call we get archived versions which can lead to unnecessary and invalid data being returned.
      Note that we are not able to select an archived version when going to the Edit screen of an issue.

      Steps to Reproduce

      1. Step 1
        Create a version in a project.
      2. Step 2
        Call <JIRA_BASE_URL>/rest/api/2/issue/ {issueIdorKey}

        /editmeta

        Expected Results

        Archived versions are not returned.

      Actual Results

      Archived versions are returned:

      fixVersions: {
      required: false,
      schema: {
      type: "array",
      items: "version",
      system: "fixVersions"
      },
      name: "Fix Version/s",
      fieldId: "fixVersions",
      operations: [
      "set",
      "add",
      "remove"
      ],
      allowedValues: [
      {
      self: "http://localhost:48180/j8180/rest/api/2/version/10000",
      id: "10000",
      name: "a",
      archived: true,
      released: false,
      projectId: 10000
      },
      

      Workaround

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            a3c7c2a06f95 Filipi Lima
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: