Save Portal Request Create Property Panel value

Hey there,
I created a Custom Field inside the PortalRequestCreatePropertyPanel module, the field is shown to the customer during the ticket creation process by using this code:

  <PortalRequestCreatePropertyPanel data={formData} onSubmit={onSubmit} header="asas" width="medium">
      <Fragment>
          <Select label="Project" name="project" isRequired>
            {Object.keys(issues).map(key => (
              <Option label={issues[key].fields.summary} value={issues[key].fields.summary} />
            ))}
          </Select>
      </Fragment>
    </PortalRequestCreatePropertyPanel> 

But it looks like that the value, which is selected in the dropdown is not stored somewhere, for showing the field value, I have this code:

const View = () => {
  const {extensionContext: myExtensionContext} = useProductContext();
  console.log("Hey there!")
  console.log(JSON.stringify(myExtensionContext));


  console.log("#########################################################")
    console.log("useProductContext().extensionContext: \r\n" + JSON.stringify(useProductContext()))
    console.log("#########################################################")

  const fieldAppearance = (value) => {
    return "success"; 
  };

  return (
    <PortalRequestDetailPanel>
        <Text>
          <StatusLozenge text={JSON.stringify(myExtensionContext)}  />
        </Text>
    </PortalRequestDetailPanel>
  );
};

The log with “console.log(JSON.stringify(myExtensionContext));” does not have any properties for the custom field.

May you can help here?

Thanks and best regards,
Chris

1 Like

This is how the manifest.yml looks like:

modules:
  jiraServiceManagement:portalRequestCreatePropertyPanel:
    - key: customer-project-dropdown-edit
      name: Cinemo Customer Project Dropdown
      description: Dropdown for Customer Projects
      function: edit
      title: Customer Project Dropdown
      viewportSize: medium
      unlicensedAccess:
        - anonymous
        - customer
        - unlicensed
      type: String
      validation:
        expression: value == null || value == "Select..."
        errorMessage: This field is required
  jiraServiceManagement:portalRequestDetailPanel:
    - key: customer-project-dropdown-view
      name: Cinemo Customer Project Dropdown
      description: Dropdown for Customer Projects
      function: view
      title: Customer Project Dropdown
  function:
    - key: edit
      handler: index.renderFieldEdit
    - key: view
      handler: index.renderFieldView
app:
  id: Xxxxxxxxxxxxxxxxxxxxxx
permissions:
  scopes:
    - manage:jira-project
    - read:jira-work
    - read:issue-details:jira
    - read:issue-meta:jira
    - read:jira-user
    - read:group:jira
    - manage:jira-configuration