Add REST API endpoint to search for projects by name or key such as /rest/api/2/project/search

XMLWordPrintable

    • 1
    • Hide

      Dear customers,

      Currently, all supported Jira DC versions support the REST endpoint for querying Projects by name and key.

      The latest documentation: https://developer.atlassian.com/server/jira/platform/rest/v10000/api-group-projects/#api-api-2-projects-picker-get

      Kind regards,

      Agata Kowal, Software Engineer Jira DC

      Show
      Dear customers, Currently, all supported Jira DC versions support the REST endpoint for querying Projects by name and key. The latest documentation: https://developer.atlassian.com/server/jira/platform/rest/v10000/api-group-projects/#api-api-2-projects-picker-get Kind regards, Agata Kowal, Software Engineer Jira DC

      Problem Definition

      In Jira Server and Data Center currently the only way to get back a project via REST API is to call the GET /rest/api/2/project which returns ALL projects. There is no means to search for projects or limit the request to only those projects that contain a specific string of text in the project name or project key.

      Suggested Solution

      Implement a new REST API endpoint such as Jira Cloud has done over in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get

      Which allows a query parameter that can match against the key or name.

      Why this is important

      It can be a costly call to force the REST API to return all the project names on an environment that has a lot of projects. Jira Cloud also has implemented this already.

      Workaround

      None

            Assignee:
            Agata Kowal
            Reporter:
            Andy Heinzer (Inactive)
            Votes:
            9 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: