To those that may find this problem I struggled a while to fix this, turns out my account was missing the permission to be able to edit issues on my project, no matter how I tried to reformat my request it would throw this error and JSON could not be processed, or was badly made. That may have been the case but check with an admin to make sure you have edit permissions enabled. Hope it helps.
Hi and welcome!
As the message says: The info provided in your request is not valid. Your REST request should be conform the REST API docs.
With little information in your question, it's not really clear what you are trying to do. Please elaborate.
Regards,
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
So you try to create a project, but please provide how you are doing the call, the payload you are providing .. because something seems te be wrong with that.
Regards,
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
That is the URL indeed, but what about the body. This is a POST request which requires a structured body with parameters in order to work.
Reagards,
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems like you got your answer there in the bottom of the screen:
You must specify a valid project lead
Have a look at the documentation you provided:
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-projects/#api-rest-api-2-project-post
There is an example there and by the looks of it the leadAccountId in the example is formatted differently.
Regards,
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this worked for me, replace "%" with ":" in the leadaccountid same as accountid from [/rest/api/2/project/{1}]
{
"key": "",
"name": "",
"projectTypeKey":"software",
"leadAccountId":"__:__"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.