I'm trying to create issues with Bitbucket API, but I get the message:
{"type": "error", "error": {"message": "No import job started"}}
My command CURL:
curl -u username:password -X GET https://api.bitbucket.org/2.0/repositories/name/name2/issues/import -H "Content-Type: application/json" --data data.json
My data.json:
{
"title": "title"
}
I'm starting to work with Bitbucket, can you please help me?
What am I doing wrong?
To create a new issue, you will need to use this API:
I do it.
Look my url with CURL: https://api.bitbucket.org/2.0/repositories/name/name2/issues/import
I use the documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The CURL your pasted is the issues import API which is used to upload a zip file of issues.
Try this API instead:
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.