Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pasting Jira filter URL into Confluence shows Asian characters Jira link instead of issue list

Sina Sadeghi Pour August 1, 2023

Every month I produce a Confluence page using a Jira issue filter URL like:

https://<myorg>.atlassian.net/issues/?jql=project+%3D+<myproject>+AND+labels+%3D+MonthlyGoal%3AAug23+ORDER+BY+status+DESC%2C+created+DESC&atlOrigin=<redacted>

Usually, as expected, the result is a list of Jira issues presented in a nice table:

Screenshot 2023-08-02 at 10.41.42 am.png

 

This month, I am getting a Jira link with Asian characters:

Screenshot 2023-08-02 at 10.29.18 am.png

I assume this is a bug.

1 answer

0 votes
Avery Lane
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 3, 2023

Hello @Sina Sadeghi Pour I came across this as well and have filed a bug report that you can follow and vote on here: 

https://jira.atlassian.com/browse/JRACLOUD-81604

Issue Summary

In some instances, when copying and pasting a Jira Filter link into a comment in any Atlassian product or on a page in Confluence, the Link preview will render random Chinese characters instead of the links contents.

This only happens with what I will refer to as "precursor" filter links in this format:

https://your-domain.atlassian.net/issues/?filter=12345

If you paste this URL into a comment on an issue comment or in Confluence, the link preview will render Chinese characters.

If you visit the link above in a web browser it will actually redirect to a URL in this format:

https://your-domain.atlassian.net/browse/PRJ-123?filter=12345

Where PRJ-123 is the issue key of the first issue returned by the filter. Filter links in this format will render normally in Jira issue comments and in Confluence.

This is reproducible on Data Center: No

Steps to Reproduce

So far I have found that there are two ways that users might end up copying the precursor link (before the redirect):

  1. Jira Menu → Filters → View All Filters
    • If you directly copy the filter links from this page and paste them into a comment or confluence page, Chinese characters will be rendered in the link preview.
  2. Jira Menu → Filters → Under RECENT select any recent filter → Click Filters again → Under RECENT select the same filter again
    • This will cause the link in the address bar to change to the precursor link without redirecting. If you copy and past this link into a comment or Confluence page, Chinese characters will be rendered in the link preview.

Workaround

Workaround 1: (Recommended) Visit the link and copy the redirected link instead

Workaround 2: Extract the filterID from the URL and form your own URL using the following format:

https://your-domain.atlassian.net/browse/PRJ-123?filter=12345

Where PRJ-123 is the issue key of the first issue returned by the filter. Filter links in this format will render normally in Jira issue comments and in Confluence. (This alternative workaround may be useful if you are using the API or a scripting solution and can't or don't want to make additional network requests to get the redirected link).

During my testing, I discovered that any random project and issue key works even if the project or issue key doesn't actually exist as long as this format is used:

/browse/P-n?filter=12345

Where P is any number of upper-case letters and n is any positive integer.

Sina Sadeghi Pour August 3, 2023

Thanks @Avery Lane ! Appreciate the workarounds.

Sina Sadeghi Pour August 3, 2023

Hi @Avery Lane

I just tested your workaround, if I go to the link, wait for redirection and copy the resulting URL from my browser URL bar, paste it into Confluence, it gives me a Jira link, it doesn't expand it to a table of Jira issues as I would expect.

FWIW the URL also doesn't have `/...?filter=...` but rather `/...?jql=...`

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events