The /jql/parse REST API endpoint does not work for JQL clauses using issueLinkType if ScriptRunner is installed

XMLWordPrintable

    • 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.

      https://support.atlassian.com/jira-service-management-cloud/docs/advanced-search-reference-jql-fields/#Advancedsearchingfieldsreference-issuelinktypeIssuelinktype

      As a consequence, JQL of the type issueLinkType = LINK_TYPE cannot be parsed anymore by apps.

      Steps to Reproduce

      1. Install ScriptRunner
      1. 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

              Assignee:
              Kurtcebe Eroglu
              Reporter:
              Guilherme Bueno (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: