Hi,
I am currently working on a jira plugin. To test my rest api calls I use the rest api browser.
My problem occurs when I try to create an assignment for any other user than admin. The following rest api call works fine:
post http://localhost:2990/jira/rest/tempo-planning/1/allocation (200)
Data:
{"planItem":{"id":"10400","type":"ISSUE"},"scope":{"type":"project"},"assignee":{"key":"admin","type":"user"},"commitment":100.0,"start":"2019-09-30","end":"2019-09-30","recurrence":{"rule":"NEVER"}}
Changing the assignee-key from admin to any other existing user leads to the following error:
post http://localhost:2990/jira/rest/tempo-planning/1/allocation (404)
Data:
{"planItem":{"id":"10400","type":"ISSUE"},"scope":{"type":"project"},"assignee":{"key":"bob","type":"user"},"commitment":100.0,"start":"2019-09-30","end":"2019-09-30","recurrence":{"rule":"NEVER"}}
response:
{
"errors": {},
"errorMessages": [
"No project could be found with id '0'."
],
"reasons": [
"NOT_FOUND"
]
}
The above error message makes no sense to me, please help me figuring out what causes this problem.
EDIT: It doesn't even work when I add the correct project id to the json request data.