Hi, I am new to forge and have been attempting to create a new Confluence macro that takes paramaters. This would allow the user add values to the macro and a table would be created.
I have created the app, but when I try and add parameters they do not appear Confluence.
Forge App Settings
Incase it helps I have provided the values that I used to create the app:
- Category = UI Kit
- product = Confluence
- template = confluence-macro
SCRIPTS
Below is my manifest.yml file:
modules:
macro:
- key: test6-hello-world
function: main
title: test6
description: Inserts Hello world!
parameters:
- key: testInput
type: string
label: Test Input
defaultValue: ""
function:
- key: main
handler: index.run
app:
id: ari:cloud:ecosystem::app/privatexxxxxx
I have also attempted to add to my package.json file based on other comments:
{
"name": "confluence-macro-ui-kit",
"version": "1.0.30",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
"lint": "./node_modules/.bin/eslint src/**/* || npm run --silent hook-errors",
"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"
},
"devDependencies": {
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0"
},
"dependencies": {
"@forge/ui": "1.10.5"
},
"parameters": {
"testInput": "yourTestInputValue"
}
}
However nothing I do seems to work. Could you please provide suggestion of what I am doing wrong?
Thanks,
Damien
It's best to direct your question to the Forge community on the Developers community of Atlassian.
https://community.developer.atlassian.com/c/forge/45
This global community serves the non-development of application, that where the developer community is dedicated to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.