When creating issues via the REST API, archived Fix Versions can still be assigned

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 10.3.2, 10.3.9, 10.7.4
    • Component/s: REST API
    • None
    • 10.03
    • 1
    • Severity 3 - Minor

      Issue Summary

      When creating issues using the REST API, it is possible to assign archived Fix Versions.

      Steps to Reproduce

      1. Use the Jira REST API endpoint to create an issue: <Jira_Base_URL>/rest/api/2/issue/
      2. Example JSON payload:
        {
        "fields": {
        "project":
        { "key": "SCRUM" }
        ,
        "summary": "REST EXAMPLE ",
        "description": "Creating an issue via REST API",
        "issuetype":
        { "name": "Bug" },
        "fixVersions": [
        { "id": "10200" }
        ]
        }
        }
        

        Note: Version ID 10200 refers to an archived version.

      Expected Results

      The issue should not be created, with an indication that the version is archived or invalid.

      Actual Results

      The issue is created with the archived Fix Version.

      Workaround

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

            Assignee:
            Unassigned
            Reporter:
            Annapoorni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: