-
Type:
Bug
-
Resolution: Incomplete
-
Priority:
High
-
Component/s: Work Item - Search - Backend - JVIS
-
Severity 3 - Minor
Issue Summary
The /jql/parse REST API endpoint does not work if a third-party app adds a JQL alias that matches an existing field name. ScriptRunner for example adds a property called scriptrunner.issuelinks which has the alias issueLinkType. Note that there is an also a native JQL alias with the same issueLinkType name.
As a consequence, JQL of the type issueLinkType = LINK_TYPE cannot be parsed anymore by apps.
Steps to Reproduce
- Install ScriptRunner
- Use the jql/parse REST API to parse the JQL query issueLinkType = Duplicate
Expected Results
The parsed field name should have been issueLinkType, as it appears in the input query.
Actual Results
The parser returns the field name issue.property[scriptrunner.issuelinks].types for the query.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available