AP.jira.showJQLEditor breaks JQL when containing "&"

It seems Jira Cloud JQL editor does not support to provide JQL containing a “&”.

Scenario:

  1. Request opening of JQL editor with pre-filled jql containing &
AP.jira.showJQLEditor(
        {
          jql: 'summary ~ "A & B"',
          submitText: 'Ok',
          cancelText: 'Cancel'
        }
      )

Expected:

  • JQL editor iframe should be correctly opened with in the search field:
summary ~ "A & B"

Actual:

  • JQL editor iframe is opened, but jql is truncated at the & in search field:
summary ~ "A 

Being not allowed to create issue on Atlassian Connect Javascript API project, I post this here. Could may be added to the existing issue on JQL Editor ([ACJS-1173] - Ecosystem Jira)