RFC-154: UI modifications for Forge Custom Fields in Jira and JSM

RFCs are a way for Atlassian to share what we’re working on with our valued developer community.

An RFC builds shared understanding of a topic and describes a proposed technical solution. It is not an approval or a commitment to deliver. We use feedback to shape the proposal and find serious flaws early.

Please keep feedback constructive and on topic, and comment on the idea rather than the people. Thanks!

Project summary

Atlassian has been exploring how to extend UI Modifications (“UIM”) to work with Forge Custom Fields (“FCF”) in Jira and Jira Service Management (“JSM”). This would let apps adapt these fields to the context of a work item or a user’s input – for example, showing or hiding a field, changing its description, or updating its value when another field changes.

This RFC follows on from our earlier RFC 125: UI Modification for Forge Custom Fields which explored enabling UI Modifications to interoperate with Forge Custom Fields. As we expanded our plans to also add support for Forge Custom Fields using the object storage type, and interactions across two different apps, we realised a more complex approach would be necessary - requiring further feedback and validation with the community.

  • Publish: 30th October 2026

  • Discuss: 13th November 2026

  • Resolve: 18th November 2026

Problem

Our initial proposal RFC 125: UI Modification for Forge Custom Fields did not allow Forge apps providing a Forge Custom Field to intercept write requests from the UI Modifications layer before the request was written to the work item’s field data. This meant that a Forge app could not prevent or manipulate write requests that are deemed invalid; especially if the request came from an app that was implemented by a different app developer.

We discovered this would not be sufficient for apps that need to validate writes at runtime, such as permitting value updates only from a defined allowlist of apps, or verifying a value against a remote API.

The app providing the field needs a way to check and accept changes without having to reimplement the complete set of supported operations on the UI Modifications API.

Proposed solution

This solution supersedes the solution proposed in RFC 125: UI Modification for Forge Custom Fields .

Our initial solution is designed to support the object custom field type at first, with support expanded to other types in future.

An app can make its custom field (either a jira:customField or jira:customFieldType module) available to UIM through an explicit manifest flag. On a supported screen, a UIM app could read or change the field using the APIs available there. For value writes and option visibility changes, the field app would provide handlers to facilitate that request.

These handlers only apply to write operations to the field performed using UI Modifications. Writes through other channels, such as REST API updates or direct edits by users, do not trigger the handlers.

The optional edit.validation.expression expression and the optional schema property (for object fields) will be executed after the handler runs when the value is saved to the Jira work item (and invalid values will be rejected).

The following diagram outlines the intended sequence of operations:

Proposed screen support

Our initial release would support the following Jira and JSM screens:

  • Global Issue Create

  • Issue View

  • Issue Transition

  • JSM Request Create

Support for additional screens would be added in subsequent milestones.

The functionality will work for custom fields implemented using UI Kit and Custom UI.

Developer experience for apps providing custom fields

1. Opt in through the manifest

The field app would declare type: object and set isUIModificationsEnabled: true.

## Illustrative example
modules:
  jira:customField:
    - key: sample-object-field
      name: Sample Object Field
      type: object
      isUIModificationsEnabled: true
      schema:
        properties:
          example:
            type: string
      formatter:
        expression: "`${value.example}`"
      view:
        resource: main
      edit:
        resource: main

2. Subscribe to field-data updates

To receive field data updates made through UIM, the field app must use a React provider or a non-React subscription.

React provider pattern: FieldDataProvider / useFieldData

This pattern is a good fit when the field UI is built with React and multiple components need current field data.

// Illustrative example
import { FieldDataProvider, useFieldData } from '@forge/hooks/jira';
import { Text } from "@forge/react";

type FieldSchema = {
  example: string;
};

const App = () => (
  <FieldDataProvider>
    <CustomFieldView />
  </FieldDataProvider>
);

const CustomFieldView = () => {
  const { ready, fieldValue } = useFieldData<FieldSchema | null>();
  return <Text>{ready ? fieldValue?.example ?? 'Not set' : 'Loading…'}</Text>;
};
Non-React pattern: subscribeToFieldData

This pattern is useful for non-React implementations or when a lightweight subscription model is preferred.

// Illustrative example
const subscription = await customFieldApi.subscribeToFieldData(({ fieldValue }) => {
  render(fieldValue);
});

// Unsubscribe when no longer needed.
subscription.unsubscribe();

3. Register handlers with registerUIMHandlers

The custom field app uses registerUIMHandlers to expose logic for the UIM operations that require a custom implementation.

A UIM Handler is required for the setValue operation. A handler may be optionally registered for the setOptionsVisibility operation, if the field supports get/set options behaviour. All other operations in the Common Field API are implemented by the Forge platform and do not need to be supplied with handlers.

// Illustrative example
registerUIMHandlers({
  setValue: async (proposedValue, context) => {
    // the App ID of the UI Modification, and the renderContext (the view where the operation is taking place)
    const {appId, renderContext} = context; 
    
    if (proposedValue === null) return { accepted: true, value: null };
    if (!isValid(proposedValue)) return { accepted: false, code: 'INVALID_VALUE' };
    return { accepted: true, value: proposedValue };
  },
  
  setOptionsVisibility: async (proposedVisibility, context) => {
    return { accepted: true, value: proposedVisibility };
  },
});

The handler receives the intended value to be set by a UIM operation in the proposedValue parameter, along with the App ID of the UI Modification and the render context in the context parameter.

The handler returns a response object indicating if the operation was accepted. If the operation was accepted, the accepted value is returned. If the operation was not accepted, an error code is returned.

Errors are trapped by the UIM app’s onError callback.

The handler could choose to:

  1. Accept the provided value

  2. Modify the value or enrich it with additional data before accepting it

  3. Block the operation by returning an error code

4. Update how the field reads its value

Once your app is UIM-compatible, you must use one of the value subscription methods defined in Step 2 to read the field value.

Do not use view.getContext() from the Forge Bridge to read the value, as the addition of the UIM API stops the field from being remounted.

You can still use view.getContext() for details that stay the same while the field is open, such as extension.fieldId, extension.fieldType, and extension.renderContext.

Developer experience for apps providing UI Modifications

App developers writing UI Modifications would continue to use the existing UI Modifications API as-is.

Forge Custom Fields with the isUIModificationsEnabled flag would appear in the set of supported fields returned from getFields().

User experience

For end users, the goal is for an opted-in field to update when the UIM app changes it, without an app reload. For example, a field could be shown or hidden, or its value could change based on other information on the screen. The result depends on the screen and the UIM APIs available.

Asks

We welcome any reactions, including agreement or interest in the proposal. We’re especially interested in:

  1. For app developers who build custom fields:

    1. What use cases do you have that require this approach vs. just simply accepting the values as originally proposed in RFC-125?

    2. Does this approach give you sufficient control over how other apps may interact with and manipulate your field’s data?

    3. What additional context would you need beyond the calling App ID and render context?

  2. For app developers who build UI Modifications: How would your app discover the value shape and option identifiers for a third-party object field? Would integration specific to each field app be workable?

  3. What’s missing? Are there any particular use cases, known requirements or edge cases that are not covered by this proposal?

Thanks for this RFC @HeyJoe,

I need a little clarification around this:

Does it means:

  1. in registerUIMHandlers we must have setValue, and all others field operation might be present ?
  2. in registerUIMHandlers we must have setValue, we might have setOptionsVisibility and the others field operation are not available ?
  3. Something else

If it is case 1, examples for the others operations are welcome.

Thanks

Can you provide the type of proposedVisibility here ? That will help understand.

Something else

Defining handlers for setValue and setOptionVisibility is optional. Your custom field app only needs to register them if you want UI modifications apps to be able to set the value of your field or control the visibility of its options.

All other field operations work exactly as they do for native fields. For more details, please see the UI modifications.

The proposedVisibility value follows the same format that UI modifications setOptionsVisibility currently accepts. It is an object with the following structure:

{
options: string[];
isVisible: boolean;
}

Thanks for sharing this! I hope this functionality helps retrieve JSM-related fields, such as the work item’s Request Type, on the fly. I am very much interested in having a 1:1 conversation to discuss further. As a reminder, my use-case is below:

I have a custom field called “Request Category,” a single-select dropdown that dynamically displays request subtypes for each request type. For example:

Request Type: Dropbox:
Request Category options:

  • New Account
  • Troubleshooting

If I were to change the request type to “Jira,” the options for Request Category would be the following:

  • Access to Space
  • Remove a user from Space

Currently, I implement this through the edit.jsx file of my Request Category custom field:

import React, { useState, useCallback, useEffect } from 'react';
import ForgeReconciler, { Select } from '@forge/react';
import { CustomFieldEdit } from '@forge/react/jira';
import { invoke, view } from '@forge/bridge';

const Edit = () => {
    const [value, setValue] = useState({});
    const [categories, setCategories] = useState([]);
    const [isLoading, setIsLoading] = useState(true);

    const onSubmit = useCallback(async () => {
        try {
            const valueToSubmit = (value?.label && value?.value) ? value : null;

            await view.submit(valueToSubmit);
        } catch (e) {
            console.error(e);
        }
    }, [view, value]);

    useEffect(() => {
        const loadContext = async () => {
            try {
                const context = await view.getContext();
                const ext = context.extension ?? {};
                const {
                    issue, project,
                    fieldValue
                } = ext;

                let requestTypeId;
                try {
                    const key = issue.key;
                    requestTypeId = await invoke('getRequestTypeId', { issueKey: key, forceRefresh: true });
                } catch (error) {
                    console.log(`Error fetching requestTypeId: ${error}`)
                }

                console.log(`Fetching categories for project ID ${project.key} and request type ID ${requestTypeId}...`);
                let categories_fetch = await invoke('getCategories', { projectId: project.key, requestTypeId });
                console.log(`categories: ${JSON.stringify(categories_fetch)}`);

                setCategories(categories_fetch);
                setIsLoading(false); // Set loading to false after data is loaded

                // Set the initial value if it exists
                if (fieldValue) {
                    console.log(`Setting initial field value: ${JSON.stringify(fieldValue)}`);
                    try {
                        // Try to parse as JSON first
                        const parsedValue = JSON.parse(fieldValue);
                        setValue(parsedValue);
                    } catch (error) {
                        // If not JSON, find matching category by ID
                        const matchingCategory = categories_fetch.find(cat => cat.id === fieldValue);
                        if (matchingCategory) {
                            setValue(matchingCategory);
                        } else {
                            setValue({ id: fieldValue, name: `Unknown (${fieldValue})` });
                        }
                    }
                }
            } catch (error) {
                console.error('Error loading context:', error);
                setIsLoading(false); // Set loading to false even on error
            }
        };

        loadContext();
    }, []);

    const selectOptions = categories.map(cat => ({ label: cat.name, value: cat.id }));

    const handleOnChange = useCallback((selectedOption) => {
        setValue(selectedOption);
    }, []);

    if (isLoading) {
        return (
            <CustomFieldEdit onSubmit={onSubmit} hideActionButtons>
                <Select
                    appearance="default"
                    options={[]}
                    isDisabled={true}
                    placeholder="Loading categories..."
                />
            </CustomFieldEdit>
        );
    }

    return (
        <CustomFieldEdit onSubmit={onSubmit} hideActionButtons>
            <Select
                appearance="default"
                options={selectOptions}
                onChange={handleOnChange}
                value={selectOptions.find(option => option.value === value?.id)}
                placeholder="Choose a category..."
            />
        </CustomFieldEdit>
    );
};

ForgeReconciler.render(
    <React.StrictMode>
        <Edit />
    </React.StrictMode>
);

The problem is, I cannot retrieve the request type ID from the current view.getContext(); The issue object only returns the following info:
{“key”:“SPACE-364”,“id”:“32435”,“type”:“Service Request”,“typeId”:“10502”}

The only way I can retrieve the request type ID on demand is by calling the /rest/servicedeskapi/request endpoint, which is too computationally expensive for my use case (it causes my field to load for ~3 seconds longer than it should).

I have looked into storing the request type ID in KVS using a backgroundScript module and updating the key/value pair when the request type changes; however, the event listeners for issue changes do not fire immediately, causing a significant delay in updating the stored value.

What I hope to get out of this ticket is a way to retrieve JSM-related context fields, such as Request Type, via view.getContext() or another method that does not require querying an endpoint.

Perhaps with this change, I will be able to modify the options provided in edit.jsx using the uiModificationsApi (without changing the options globally, as each request may have a different request type, and thus, require a different set of dropdown options).

return (
    <CustomFieldEdit onSubmit={onSubmit} hideActionButtons>
        <Select
            appearance="default"
            options={selectOptions}
            onChange={handleOnChange}
            value={selectOptions.find(option => option.value === value?.id)}
            placeholder="Choose a category..."
        />
    </CustomFieldEdit>
);

Hi @Nicholas ,

Your request is a but tangential to this RFC. We don’t yet support the request type field in JSM for UI Modifications.

I have created a feature request here for it: Jira

You are welcome to book some time with me if you’d like to discuss further: Calendly

Thanks for creating this suggestion! Apologies; I was directed to RFC-125 when I explained my use case a few months ago, but this RFC seems to have gone nowhere. Cheers!

Hey,

We are waiting for a long time to be able to set visiblity of forge defined customfields types (however our fields are of this types: group, user, number, string).

We need in first order this easy functionality for hiding them (displayConditions are not enough for our case).

Second thing is Global Issue Create screen, We would rly like some way of reacting for “create button”, i mean the ability to send with it some properties based on forge customfields. We are using it on ServiceDesk create request and simillar option on GIC would be very helpfull.

About other apps we have very simple policy = “Block everything” so if you would give as more controll We propably could make integrations easier.

I hope in some limited way you could support all field types at least for this visibility option.

Hi @JanKowalski1 welcome to the developer community!

To address your two main points:

  1. Hiding Custom Fields: The ability to dynamically hide Forge custom fields via UIM, is exactly what this RFC is aiming to solve. This should give you the exact visibility control you are looking for across those field types.

  2. Attaching metadata on Global Issue Create: Intercepting the “Create” button click directly is a bit outside the scope of this specific RFC’s UI modifications. However, there is a standard workaround for this using Forge product events. You can set up an avi:jira:created:issue trigger to listen for the issue creation, and then use that triggered function to immediately attach your custom metadata via entity properties or by updating a read-only Forge Custom Field.

Thx for the answer however in our case We need the inputs from Global Issue Create screen connected with certain issue but outside the “Atlassian” processing.

For security reasons we can’t allow to set values on GIC as those can be read by everyone listening to the event.

Ps.
Like i said hiding is critical for our case and if you could make it working for all custom fields types not only object in first release this would be very helpfull for us and our clients which are waiting for this feature.

Thanks for the RFC. We’re on both sides of it. Formify is our no-code field-rules app built on UI Modifications (Create, Issue View, Transition and JSM request create). We also ship Forge custom fields: File Field, “Time tracking” and “Duration” (Time Tracking Fields) and “Issue Template” (Templify), all type: object. Templify also uses UIM to fill the Create dialog from a template.

As a UIM app vendor

A Formify rule can show or hide a field, make it required or optional, make it read-only, rename it, change its description, set its value or hide some of its options. Rule conditions read other fields with getValue. UIM doesn’t expose Forge fields today, so our rule editor has to leave all of them out. Rules we’d like to support: “make the Evidence file field required when Priority is Highest”, “show Duration only for Bugs”, “when the file field has files, show Reviewer”.

  1. Types other than object. setVisible, setRequired, setReadOnly, setName and setDescription don’t change the value and need no handler. Could they work for every opted-in Forge field type (string, number, date, user, group…) in the first release, with only setValue and setOptionsVisibility limited to object? Most Forge fields our customers have are simple types. Our own example: Formify ships a string Forge field for cross-field validation on Create and Transition. Our UIM passes it results over bridge events today, and we can’t hide it on screens where no validation rule applies.
  2. Required. Jira enforces setRequired on submit for native fields. For an opted-in Forge field:
    • Will Jira block Create, Transition and JSM request create while the field is empty?
    • What counts as empty for an object field: only null, or also {}?
    • Will the field app know it’s required (for example an isRequired flag next to fieldValue in useFieldData), so its edit view can show the marker? Today our Duration field emulates “required” by submitting a sentinel value that its validation expression rejects. A platform signal would let us drop that.
  3. Reading values. Please confirm that getValue returns the stored value in the same shape as the REST API, and that onChange fires when the field app submits a new value, so Forge fields can be rule conditions too.
  4. Value shape (your question to UIM developers). Integration specific to each field app doesn’t scale for a generic rules app, or for Templify, which copies values from a template. We’d suggest: setValue accepts the same JSON as the REST API for that field, and getFields() (or the REST field metadata) exposes the field’s schema and which handlers it registered. A rules app could then offer “set value” only where a handler exists, build an input from the schema, and fall back to “clear” or “copy from another field of the same type”.

As a custom field vendor (your three questions)

  1. Why handlers instead of accepting values as in RFC-125. A File Field value references files our app stores. Another app must never write a reference we didn’t create, so we’d accept null (clear) and reject everything else. The Duration field stores seconds plus a text form that depends on the field context’s settings (hours per day, days per week). A handler lets us accept { durationSeconds } and fill in the rest. So handlers are the right model for us.
  2. Enough control. Yes, for value writes. Please confirm that without a setValue handler a UIM app’s setValue fails with a documented error code instead of doing nothing silently, while visibility, required and read-only keep working. A list of standard error codes, plus an optional message the UIM app can show to the user, would help both sides.
  3. More context. The field’s current value (to merge partial updates), the field context ID (our fields are configured per context), and the project and issue type (request type on JSM), so a field can accept writes only in some contexts.

One more question: does adding isUIModificationsEnabled to an existing field create a major version that admins must approve? That decides how quickly it reaches existing installations.

We’d be glad to test this in an EAP with both kinds of apps.

Hello! Thanks for all the details in this RFC. When it comes to our use-cases, our apps provide both custom fields and UI modifications. In one of the cases we have 2 separate apps - where the first provides custom fields, and the second app which works with UI modifications (currently the second app cannot interact with the custom fields from the first app). In the second case we have a single app, that does both at the same time (provides custom fields and UI modifications) but in this case the same interaction is also not possible. So our main use case is letting these UI modifications work with our own custom fields. All our fields are readOnly, so we are interested in everything mentioned in this RFC apart from writes.

In terms of your questions:
1.1. Our fields are calculated and should never be written through UI modifications, so we wouldn’t register any handlers. It would be nice for us if a field without a setValue handler rejects all writes.
1.2. Yes. We’re fine with other apps reading our values and changing visibility, name or description.
1.3. We don’t need much because we reject writes anyway, so calling app ID and render context should be enough I guess.
2. We only need to read values for conditions in our app scripts. If getFields() exposed the field type key and schema, and getValue returned the same shape as the REST API, that would be enough. Integration specific to each field app wouldn’t scale for us.
3. What’s missing:

  • It would be nice to support all field types, so support getValue, onChange, setVisible, setName and setDescription for every field type, because most of our fields aren’t object.
  • Read-only fields: can readOnly: true fields opt in and appear in getFields() on the Issue View?
  • Computed values: for value.function fields, does getValue return the computed value? Does onChange / useFieldData fire when the value changes outside UI modifications, for example through a REST update or a recalculation after a transition?
  • Migration: if a field accepts no writes, do we still need to move from view.getContext() to useFieldData?
  • Versioning: does adding isUIModificationsEnabled create a major version that admins must approve?