Hello,
I am experimenting with the Forge environment. I have a resolver like this one:
const resolver = new Resolver();
resolver.define('getText', (req) => {
console.log(req);
var bodyData = `{
"editPermissions": [],
"name": "Auditors dashboard",
"description": "A dashboard to help auditors identify sample of issues to check.",
"sharePermissions": [
{
"type": "global"
}
]
}`;
const response = api.asApp().requestJira(route`/rest/api/3/dashboard`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: bodyData
}).then(() => {
console.log(`Response: ${response.status} ${response.statusText}`);
return response.json();
}).then((response) => {
console.log(response);
}) ;
return 'Hello, world!';
});
And I invoke it like this from the React code:
invoke("getText").then((returnedData) => {
console.log(returnedData);
});
My question is where can I see the logs from the custom UI resolver. I’ve tried to use the forge tunnel
and forge logs
but I can’t see my console.logs there. The logs from the React code I can see them in Developer Console.