Forge Creation of New Macro - Paramaters not being created

Damien Taylor
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 17, 2024

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

 

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2024

Hi @Damien Taylor 

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events