Hi all
I’m not sure if this is a bug or if I’m doing something wrong.
With my Forge customfield Type.
Use Case
i try to build a customfield with type object.
Manifest code
modules:
jira:customFieldType:
- key: cf-type-demo-ui-kit-hello-world
name: cf-type-demo-ui-kit
description: A hello world custom field type.
icon: https://developer.atlassian.com/platform/forge/images/icons/issue-countries-icon.svg
type: object
formatter:
expression: "`${value.label}`"
function: cfView
resolver:
function: resolver
edit:
resource: frontend
contextConfig:
function: configureContext
function:
- key: resolver
handler: index.handler
- key: cfView
handler: index.runView
- key: configureContext
handler: index.runContextConfig
resources:
- key: frontend
path: frontend/custom-ui/build
tunnel:
port: 3000
...
frontend
{
....
return <>
{context.moduleKey == "cf-type-demo-ui-kit-hello-world" ? (
["issue-view"].includes(context.extension?.renderContext) ? (
<CustomFieldTypeEdit context={context} />
) : ["issue-create","issue-transition"].includes(context.extension?.renderContext) ? (
<CustomFieldTypeCreate translations={t[locale]} context={context} />
): <>other issue context</>
}
</>
In issue-view and issue-create it works. but in issue-transition ,it not works.
but
it becomes a textarea.
thanks for help.