I am generating a URL to the issues navigator using javascript. The URL that I generate is of the structure:
http://xxxx/jira/issues/?jql=reporter=currentUser() AND issuetype="i+D+i" AND resolution is EMPTY
JIRA shows the encoded URL:
http://xxx/jira/issues/?jql=reporter=currentUser()%20AND%20issuetype=%22i+D+i%22%20AND%20resolution%20is%20EMPTY
This URL does not work because the issue navigator interprets the JQL as:
reporter=currentUser() AND issuetype="i D i" AND resolution is EMPTY
When encoding the URL, the + symbol is replaced by its code %20 (space)
If I code the symbol + (%2B) in javascript:
http://xxxx/jira/issues/?jql=reporter=currentUser() AND issuetype="i%2BD%2Bi" AND resolution is EMPTY
JIRA codes the % symbol:
http://xxx/jira/issues/?jql=reporter=currentUser()%20AND%20issuetype=%22i%252BD%252Bi%22%20AND%20resolution%20is%20EMPTY
This URL does not work either, the issue navigator interprets the JQL as:
reporter=currentUser() AND issuetype="i%2BD%2Bi" AND resolution is EMPTY
Any solution for this?