Links, avatars and scrollbars within the Custom UI iframe

Hello,

I am currently trying to develop a custom ui plugin for jira cloud. I came across a few problems, for which I unfortunately cannot find a solution.

In my plugin i show the names of users, which should be a link to the respective profile. Since the iframe has no allow-top-navigation flag I think it is unfortunately not possible to include such a link.
It is similar with pictures. As described in the documentation, it is only possible to use the style-src CSP header. To load an avatar, the img-src header is still needed.
Also, the iframe always seems to have the same size. If the content is larger, the iframe becomes automatically scrollable. This can look quite unattractive in many cases. Here I did not find a way to avoid this.
I have built the plugin before with atlassian connent. Also here the content is put into an iframe. But the listed problems do not occur there.
Please let me know if i have overlooked possibilities or misunderstood functionalities.

Thanks in advance!

1 Like

Hey @AnnaHbner,

Thanks for providing this feedback, I don’t think you are missing anything as it’s not possible in custom UI today.

I have taken this feedback to my team who is actively working on custom UI improvements :slight_smile:

3 Likes

I also would need a possibility to link from a ui kit macro to a confluence page. As I understand, this is currently not possible, right?

1 Like

Same issue here. Need to do a <a target="_blank" to a Confluence page in the same instance but this would require allow-popups on the iframe.

@m.schmidt you can link to relative URLs in UI kit. See the docs here: https://developer.atlassian.com/platform/forge/ui-kit-components/text/

1 Like

@sven.schatter I assume this is referring to custom UI? If so, yes, we are currently exploring ways to solve this. We hope to have an update next quarter/new year :slight_smile:

1 Like

Yes. Thanks.
Can you also relatively link to general pages of forge apps, like:

https://resolution-iframe.atlassian.net/wiki/spaces/IS/apps/56a0918f-bd38-4ced-b567-80353f49016f/9160847f-f269-4b23-b9ff-10d3f0f03c19/getting-started

True! Thought the thread was about Custom UI as it was mentioned in the title, maybe I mixed that up, sorry. :sweat_smile:

Awesome to hear that you’re looking into this already!

1 Like

Ooops, that was my bad :sweat_smile:

1 Like

psst – Atlassian just created forge-bridge 1.3.0-next.0 which seems stable. It provides a router which allows top-frame navigation.

import {router} from "@forge/bridge";
router.navigate("/")

@sven.schatter

7 Likes