Rate this page:
This module is going to be replaced by Jira issue context soon. Check out How to future-proof your Issue Glance implementation on how to migrate.
The jira:issueGlance
module adds an issue glance to Jira, which is content that is shown/hidden in
an issue by clicking a button. The button for the issue glance is placed alongside fields
such as Assignee and Labels. Clicking the button opens the content provided by the Forge app, so
that it fills the right sidebar.
This module can be used in Jira Work Management, Jira Software, and Jira Service Management.
It works in the new issue view but not the old issue view.
See the IssueGlance component documentation for more information.
Property | Type | Required | Description |
---|---|---|---|
key |
| Yes |
A key for the module, which other modules can refer to. Must be unique within the manifest. Regex: |
function | string | The issue glance module requires either a function for usage with the UI kit, or a resource when building with custom UI. | A reference to the function module that defines the issue glance. This function must return the IssueGlance component. |
resource | string | A reference to the static resources entry that your issue glance wants to display. See resources for more details. | |
resolver | { function: string } | Contains a function property, which references the function module that defines the configuration of resource . Can only be set if the module is using the resource property. | |
title | string | Yes | The title of the issue glance, which is displayed above its label. |
label | string | Yes | The text shown on the button for the issue glance. |
icon | string |
The icon displayed to the left of the For custom UI and UI kit apps, the If no icon is provided, or if there's an issue preventing the icon from loading, a generic app icon will be displayed. | |
status | object | The badge, lozenge, or icon shown to the right of the label . If status is not
specified, then nothing is shown. See status properties. | |
displayConditions | object | The object that defines whether or not a module is displayed in the UI of the app. See display conditions. | |
dynamicProperties | { function: string } | Contains a function property, which references the function module that returns changeable properties. See Dynamic properties for more details.
|
Property | Type | Required | Description |
---|---|---|---|
type | 'badge' | 'lozenge' | 'icon' | Yes | The UI element used to display the status. |
value | object | Yes |
This property is an object representing the status value. See status value properties. |
Property | Type | Required | Description |
---|---|---|---|
label | string | Yes | The text to display in the status. If |
url | string |
If | |
type | 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success' |
If |
Dynamic properties are used to dynamically update the status
properties. If provided in the manifest.yml
file,
Jira attempts to retrieve the dynamic properties on the initial render of the app. To do this, the dynamicProperties
handler function of the app is called. When the issue glance item is clicked, the app renders in the side panel,
where it can perform business logic updates. After the side panel is closed, the handler function
is called to retrieve updates, and then update the status
.
We're working on integrating 3LO consent with dynamic properties. If you’re using api.asUser().requestJira
,
and your user doesn't provide consent for your app through another method, api.asUser().requestJira
will fail to execute.
The app's handler function is passed the payload
argument. The payload
object has the following structure:
1 2interface Payload { // The cloudId for your site cloudId: string; extension: { // The module type included in the manifest.yml file. // In this case, it is the "jira:issueGlance" module. type: string; issue: { id: string, type: string, key: string, typeId: string }, project: { id: string, type: string, key: string } }; }
The handler function should return (or resolve with) a plain JavaScript object with status
as key.
This is an example of a handler function returning an object:
1 2function handlerFunction(contextPayload) { return { "status": { "type": "lozenge", "value": { "label": "Dynamically set status", "type": "moved" } } }; }
Use the getContext bridge method to access the extension context in custom UI.
Property | Type | Description |
---|---|---|
type | string | The type of the module. |
issue:id | string | The id of the issue on which the module is rendered. |
issue:key | string | The key of the issue on which the module is rendered. |
issue:type | string | The type of the issue on which the module is rendered. |
issue:typeId | string | The id of the type of the issue on which the module is rendered. |
project:id | string | The id of the project where the module is rendered. |
project:key | string | The key of the project where the module is rendered. |
project:type | string | The type of the project where the module is rendered. |
Use the useProductContext hook to access the context in UI Kit.
Property | Type | Description |
---|---|---|
type | string | The type of the module. |
Property | Type/value | Description |
---|---|---|
issueId | string | The ID of the issue on which the module is rendered. |
issueKey | string | The key of the issue on which the module is rendered. |
issueType | string | The type of the issue on which the module is rendered. |
issueTypeId | string | The ID of the type of the issue on which the module is rendered. |
projectId | string | The ID of the project where the module is rendered. |
projectKey | string | The key of the project where the module is rendered. |
projectType | string | The type of the project where which the module is rendered. |
Rate this page: