Skip to content

Function: updateUiModification() ​

ts
function updateUiModification(
   client, 
   parameters, 
   options?
): Promise<void>;

Defined in: src/cloud/api/uiModificationsApps.ts:130

Updates a UI modification. UI modification can only be updated by Forge apps.

Each UI modification can define up to 1000 contexts. The same context can be assigned to maximum 100 UI modifications.

Context types:

  • Jira contexts: For Jira view types, use projectId and issueTypeId. One field can act as a wildcard. Supported Jira views:

    • GIC - Jira global issue create
    • IssueView - Jira issue view
    • IssueTransition - Jira issue transition
  • Jira Service Management contexts: For Jira Service Management view types, use portalId and requestTypeId. Wildcards are not supported. Supported JSM views:

    • JSMRequestCreate - Jira Service Management request create portal view
  • Agent view contexts: For Agent view types, use projectId and issueTypeId like Jira contexts, and optionally set requestTypeId. portalId must not be set. One of projectId, issueTypeId, or viewType can act as a wildcard. Supported Agent views:

    • GICAgentView - Agent view variant of Jira global issue create
    • IssueViewAgentView - Agent view variant of Jira issue view
    • IssueTransitionAgentView - Agent view variant of Jira issue transition

Permissions required:

  • None if the UI modification is created without contexts.
  • Browse projects project permission for one or more projects, if the UI modification is created with contexts.

The new write:app-data:jira OAuth scope is 100% optional now, and not using it won't break your app. However, we recommend adding it to your app's scope list because we will eventually make it mandatory.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ contexts?: object[]; data?: string; description?: string; name?: string; uiModificationId: string; }-
parameters.contexts?object[]List of contexts of the UI modification. The maximum number of contexts is 1000. If provided, replaces all existing contexts.
parameters.data?stringThe data of the UI modification. The maximum size of the data is 50000 characters.
parameters.description?stringThe description of the UI modification. The maximum length is 255 characters.
parameters.name?stringThe name of the UI modification. The maximum length is 255 characters.
parameters.uiModificationId?stringThe ID of the UI modification.
options?RequestOptions-

Returns ​

Promise<void>