Sure @PawelRacki
And as I wrote: In the instances where the inline edit is not shown - everything works.
And we use for edit & view UI Kit
modules:
jira:customFieldType:
- key: bvsec-singleline
name: ...
description: ...
icon: https://cdn-confidential-fields.aws.bitvoodoo.cloud/cf_text_field_single.png
type: object
formatter:
expression: '`${value.placeholder}`'
schema:
properties:
timestamp:
type: number
iv:
type: string
data:
type: string
required:
- timestamp
function: fieldView
edit:
function: fieldEdit
contextConfig:
function: configureContext
webtrigger:
- key: development-only
function: development-onlyfunc
trigger:
- key: app-installed
function: eventInstallApp
events:
- avi:forge:installed:app
- avi:forge:upgraded:app
- key: customfield-created
function: customFieldCreated
events:
- avi:jira:created:field
- key: customfield-updated
function: customFieldUpdated
events:
- avi:jira:updated:field
- key: event-customfield-trashed
function: customFieldTrashed
events:
- avi:jira:trashed:field
- key: customfield-restored
function: customFieldRestored
events:
- avi:jira:restored:field
- key: customfield-deleted
function: customFieldDeleted
events:
- avi:jira:deleted:field
function:
- key: fieldView
handler: index.fieldView
- key: fieldEdit
handler: index.fieldEdit
- key: configureContext
handler: index.runContextConfig
- key: eventInstallApp
handler: lifecycle.installApp
- key: customFieldCreated
handler: customfield-events.customFieldCreated
- key: customFieldUpdated
handler: customfield-events.customFieldUpdated
- key: customFieldTrashed
handler: customfield-events.customFieldTrashed
- key: customFieldRestored
handler: customfield-events.customFieldRestored
- key: customFieldDeleted
handler: customfield-events.customFieldDeleted
- key: development-onlyfunc
handler: webtrigger.developmentOnly
- key: resolver-administration
handler: administration.handler
jira:adminPage:
...
resources:
- key: resource-administration
path: static/administration-subpages/build
app:
id: #######
runtime:
snapshots: false
permissions:
content:
styles:
- unsafe-inline
external:
fetch:
backend:
- '*.ngrok.io'
- '*.aws.bitvoodoo.cloud'
client:
- '*.ngrok.io'
- '*.aws.bitvoodoo.cloud'
images:
- '*.aws.bitvoodoo.cloud'
scopes:
- storage:app
- read:field:jira
- read:application-role:jira
- read:group:jira
- read:user:jira
- read:avatar:jira
- read:project-category:jira
- read:project-role:jira
- read:project:jira
- read:issue-details:jira
- read:field.default-value:jira
- read:field.option:jira
- read:jira-work
package.json
{
"name": "...",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"lint-staged": {
"**/*": [
"yarn pc",
"yarn lint"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"devDependencies": {
"@types/jest": "28.1.1",
"@types/jsonwebtoken": "8.5.8",
"@types/node": "17.0.40",
"@types/node-forge": "1.0.2",
"@types/react": "18.0.12",
"@types/react-dom": "18.0.5",
"@types/react-router-dom": "5.3.3",
"@types/uuid": "8.3.4",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"eslint": "8.18.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-react-hooks": "2.1.2",
"lint-staged": "13.0.3",
"prettier": "2.7.1",
"pretty-quick": "3.1.3",
"tslint-config-prettier": "1.18.0",
"typescript": "4.0.8"
},
"dependencies": {
"@forge/api": "2.7.0",
"@forge/cli": "4.5.0",
"@forge/resolver": "1.4.4",
"@forge/ui": "1.3.0",
"@openapitools/openapi-generator-cli": "2.5.1",
"crypto": "1.0.1",
"deepmerge": "4.2.2",
"dtsgenerator": "3.16.0",
"husky": "8.0.1",
"jsonwebtoken": "8.5.1"
},
"scripts": {
"lint": "eslint ./**/*.ts{,x} --ext .ts",
"hook-errors": "echo '\\x1b[31mThe build failed because a Forge UI hook is being used incorrectly. Forge UI hooks follow the same rules as React Hooks but have their own API definitions. See the Forge documentation for details on how to use Forge UI hooks.\n' && exit 1",
"setup": "node --experimental-modules scripts/setup-dev-env.mjs",
"build": "yarn --cwd './static/administration-subpages' run build",
"installui": "yarn --cwd './static/administration-subpages' install",
"dev": "yarn tunnel",
"tunnel": "yarn forge tunnel",
"deploy": "yarn forge deploy",
"install:forge": "yarn forge install",
"dtsgen": "rm -rf ./src/jira-types/generated-types.d.ts; dtsgen -o ./src/jira-types/generated-types.d.ts --url https://developer.atlassian.com/cloud/jira/platform/swagger-v3.v3.json",
"pc": "npx prettier --check .",
"pw": "prettier --write .",
"prepare": "husky install"
}
}