export user=my_user_email
export password=my_password
export org=my_org_or_my_user
export repo=my_repo_name
curl --user $user:$password -X POST -H "Content-Type: application/json" \
"https://api.bitbucket.org/2.0/repositories/"$org"/"$repo"/issues" \
--data '{"title":"title of the issue","content":{ "raw":"this should be the description"}, "fields": {"assignee": {"username": "ThomasG77"}}}'
curl "https://api.bitbucket.org/2.0/repositories/"$org"/"$repo"/issues/95" \
--user $user:$password -X PUT -H 'Content-Type: application/json' \
-d '{
"title": "Updated title 1",
"assignee": {
"username": "ThomasG77"
}
}'
curl --user $user:$password "https://api.bitbucket.org/2.0/repositories/"$org"/"$repo"/issues"
Finding the right entry was not so simple, so to keep in memory...
https://developer.atlassian.com/bitbucket/api/2/reference/resource/