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

REST error "The value 'XXX' does not exist for the field 'project'."] while performing search with SQL

XMLWordPrintable

    • Icon: Support Request Support Request
    • Resolution: Support Request
    • Icon: Medium Medium
    • None
    • 5.2.11, 6.1.5
    • REST API

      Try this basic curl example that is supposed to perform REST search using SQL.

      It seems that in this case JIRA assumes that project is a custom field and not a project, that's really weird. It does not matter what value you put for the project filter, you will get the same error, even if the project exists or not.

      This reproduces with latest JIRA: 6.1.5 and 5.2.11 too.

      Don't forget to specify credentials inside ~/.netrc file.

      curl -N  -X POST --data '{ "jql": "project = XXX", "startAt": 0, "maxResults": 9999, "fields": [ "summary", "status", "assignee" ]}' -H "Content-Type: application/json" "https://locahost/rest/api/2/search"
      
      {"errorMessages":["The value 'XXX' does not exist for the field 'project'."],"errors":{}}++ exit
      

              Unassigned Unassigned
              73f0b2e75f82 Sorin Sbarnea (Citrix)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: