Change event of select option

Hi all,

Is there a way to invoke the change event of a form select option? (something similar to react onChange)

My requirement is that when I change the Jira project from the select option of projects it should invoke a rest API call to Jira API to collect the issue types of the selected project.

Looking at the documentation I don’t see any events for the Select component…
https://developer.atlassian.com/platform/forge/ui-kit-components/form/#select

<Form onSubmit={submit} submitButtonText="Get Recommendations">
        <Select label="Project" name="projectId" isRequired={true} >
          {projects.map((project) => {
            return (
              <Option
                defaultSelected={configuration.projectId == project.id}
                label={`${project.name} (${project.key})`}
                value={project.id}
              />
            );
          })}
        </Select>
        <Select label="Issue type" name="issueTypeId" isRequired={true}>
          {issueTypes.map((issueType) => {
            return (
              <Option
                defaultSelected={configuration.issueTypeId == issueType.id}
                label={issueType.name}
                value={issueType.id}
              />
            );
          })}
        </Select>
...
</Form>
2 Likes

Hi @JalalSordo,

You are right that this isn’t possible today and this request is currently tracked here: [FRGE-73] - Ecosystem Jira

The only alternative available is to use the Forge Custom UI.

Caterina

Is there any update on this?

Hi @StephenMayeux,

I checked with Adam, the product manager looking after this area of Forge, and he posted an update on the related ticket: [FRGE-73] - Ecosystem Jira.

Thanks,
Caterina

Hiya!
We wanted to catch an event once a new value is added to a custom multi select list field on Edit screen in Jira Cloud (before updating the field). Is this topic related to it?