I’m trying to add a field to select issues after the addon has been installed. However, when I try to access the currently available fields, I get a status 400.
If I add userAccountId to the httpClient it works.
addon.on('host_settings_saved', async (clientKey, data) => {
const httpClient = addon.httpClient({
clientKey,
});
httpClient.get(
{
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
},
url: `/rest/api/3/field`,
})...
});
Any idea how I can access API endpoints like these without needing a userAccountId inside the install lifecycle hook?