REST endpoint issue/createmeta returns broken autoCompleteUrl for "assignee"

XMLWordPrintable

    • 7.06
    • 1
    • Severity 3 - Minor
    • 0

      Actual Behavior

      The autoCompleteUrl for assignee, which returns whether an user is assignable, passes issueKey=null as a parameter. This doesn't make sense as we are just listing out fields for an issue to be created.

      "assignee": {
          "required": false,
          "schema": {
              "type": "user",
              "system": "assignee"
          },
          "name": "Assignee",
      >   "autoCompleteUrl": "https://jpalharini.jira/jira764/rest/api/latest/user/assignable/search?issueKey=null&username=",
          "hasDefaultValue": true,
          "operations": [
              "set"
          ]
      }
      

      If we run the above query with anuy value set for user, Jira returns the following.

      {
          "errorMessages": [
              "The issue no longer exists."
          ],
          "errors": {}
      }
      

      Expected Behavior

      The returned URL should pass project=PKEY instead.

      Steps to Reproduce

      1. Setup a Jira instance with at least one project;
      2. Execute a GET request on the following URL, replacing <PKEY> with a valid project key and <Type> with a valid issue type;
        https://jpalharini.jira/jira764/rest/api/2/issue/createmeta?expand=projects.issuetypes.fields&issuetypeNames=<Type>&projectKeys=<PKEY>
        

      Workaround

      When processing the output of the above endpoint, replace issueKey with project.

            Assignee:
            Unassigned
            Reporter:
            Joao Palharini (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: