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

Incorrect autoCompleteUrl for Assignee in createmeta REST API call

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 7.7.1
    • REST API
    • None

      Summary

      Incorrect autoCompleteUrl for Assignee in createmeta REST API call

      Steps to Reproduce

      1. Run the following GET REST call in Jira:
        "/rest/api/2/issue/createmeta?projectKeys= SSP&expand=projects.issuetypes.fields
        

        where SSP should be replaced by the Project Key

      Expected Results

      The autocomplete provides a rest call for the assignable users for that project:

      "assignee": {
      "required": false,
      "schema": {
      "type": "user",
      "system": "assignee"
      },
      "name": "Assignee",
      "key": "assignee",
      "autoCompleteUrl": "https://instance.net/rest/api/latest/user/assignable/search?project=SSP&query=",
      "hasDefaultValue": false,
      "operations": [
      "set"
      ]
      }
      

      Actual Results

      The Autocomplete URL is incorrect:

      "assignee": {
      "required": false,
      "schema": {
      "type": "user",
      "system": "assignee"
      },
      "name": "Assignee",
      "autoCompleteUrl": "http://instance.com/rest/api/latest/user/assignable/search?issueKey=null&username=",
      "hasDefaultValue": false,
      "operations": [
      "set"
      ]
      }
      

      Notes

      This returns correctly in Jira Cloud.

      Workaround

      Use the REST call:

      GET /rest/api/2/user/assignable/search
      

      to find the assignable user for that project/issue. For more info: https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0/#api/2/user-findAssignableUsers

              Unassigned Unassigned
              mriza Mohamed Riza (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: