Hello, I added some custom fields in Jira Service Management and added them in a form to be displayed in a Customer Portal. Now, after a user fills the values for the custom fields when reporting an issue, I want to update the value for a specific custom field from my Forge app, but I obtain the following error: ‘This API works only with fields provided by Forge apps.’.
This is my code:
const response = await api.asApp().requestJira(route`/rest/api/2/app/field/value`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: bodyData
});
And this is my manifest:
modules:
jiraServiceManagement:queuePage:
- key: forge-web-trigger-hello-world-queue-page
function: main
title: Forge Web Trigger
function:
- key: main
handler: index.run
webtrigger:
- key: cellfusion-development-webtrigger
function: main
app:
id: ari:cloud:ecosystem::app/8344bad8-d8aa-4fc7-9c55-1818986913bd
permissions:
scopes:
- 'write:jira-work'
I hope you can help me. Thank you!