Hi,
I try to add a user to an project role for a project.
I use https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-role-actors/#api-rest-api-3-project-projectidorkey-role-id-post
const bodyData = `{
"user": ["xxx-yyy-my-user-account-id"]
}`;
const response = await api.asApp().requestJira(route`/rest/api/3/project/MIB/role/10006`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: bodyData,
});
console.log(`Response: ${response.status} ${response.statusText}`);
I always get a 404 response.
- The āMIBā project exists and the ā10006ā project role also exists.
- It works for other API (both GET or POST methods), like ācreate project roleā API.
- My manifest.yml files includes āmanage:jira-configurationā
- Same problem in a resolver or in the frontend (with adaptations)
Have you experienced this problem already? Could someone try to run this code and tell me if it works?
Thanks for your help!