Hello! We imported several thousands tickets (using JSON importer) and would like to be able to find them by their old IDs. During import these were specified as {{externalId}}. For example:
{
"externalId": "HLR219",
"issueType": "Defect",
...
However, when I attempt to search (using JQL):
curl -D- -X GET -H 'Content-Type: application/json' ......./jira/rest/api/2/search\?jql=externalId=HLR219
I get an error:
{"errorMessages":["Field 'externalId' does not exist or you do not have permission to view it."],"errors":{}}
The tickets are all showing their original IDs -- the custom field is named "External issue ID" and was populated by the JSON-importer during import...
If I dump the entire issue, I see these label (such as HLR219) as values of customfield_10801 of each ticket. However, searching for such custom field does not work:
{"errorMessages":["Field 'customfield_10801' does not exist or you do not have permission to view it."],"errors":{}}