Common UI kit components
Confluence UI kit components
Jira UI kit components
Jira Service Management UI kit components

Rate this page:

PortalRequestViewAction

A modal dialog triggered from the request detail view action section in Jira Service Management customer portal.

This is an example of a PortalRequestViewActionButton button:

Example of a Portal request view action button

This is an example of the triggered modal dialog:

Example of a Portal request view with the above sample code

Usage notes

PortalRequestViewAction is the top-level component required for the jiraServiceManagement:portalRequestViewAction module.

Import statement

1
2
import ForgeUI, { PortalRequestViewAction } from '@forge/ui';

Props

NameTypeRequiredDescription
childrenArray<ForgeComponent>YesA container for displaying multiple components. Can only contain ModalDialog.

Example

1
2
import ForgeUI, {render, Text, PortalRequestViewAction, ModalDialog, useState} from '@forge/ui';

const App = () => {
    const [isOpen, setOpen] = useState(true)

    if (!isOpen) {
        return null;
    }

    return (
        <ModalDialog header="Hello" onClose={() => setOpen(false)}>
            <Text>Hello world!</Text>
        </ModalDialog>
    );
};

export const run = render(
    <PortalRequestViewAction>
        <App/>
    </PortalRequestViewAction>
);

Rate this page: