-
Bug
-
Resolution: Fixed
-
Low
-
None
-
Severity 3 - Minor
-
-
Warranty
Issue Summary
Issue searches include results from trashed custom fields when searching via following REST endpoints:
- https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-jql-post
- https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-jql-get
- https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search#api-rest-api-3-search-approximate-count-post
- https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-jira-expressions/#api-rest-api-3-expression-evaluate-post
Steps to Reproduce
- Create Custom Field, e.g.
- Single Select Custom Field named "CF To Trash" with Option O1
- Create issue ABC-1, set "CF To Trash" field with O1
- Move "CF To Trash" custom field to Trash
- Query REST endpoint with JQL
- rest/api/latest/search/jql with JQL "CF To Trash" = O1
Expected Results
0 results are returned
Actual Results
Jira returns issue ABC-1
Workaround
Currently there is no known workaround for this behavior.