Hey folks,
I am trying to set the value of a custom field created with a Forge app. My code runs inside of a trigger function and looks like this; it’s virtually identical to the example from the documentation.
const res = await api.asApp().requestJira(route`/rest/api/3/app/field/LONG_FIELD_ID/value`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: updateData
});
However, I always get this error:
INFO __ Response: 403 Forbidden
INFO __ { errorMessages: [ 'OAuth 2.0 is not enabled for this method.' ] }
Now, I’d be happy to use another form of authentication, but this being a Forge trigger, api.asApp()
is the only option I know. Additionally, the documentation specifically states:
This resource represents the values of custom fields added by Forge apps. Use it to update the value of a custom field on issues.
So, am I missing something here?
Thanks,
Oliver