I already set the permission of the project that anyone can create an issue.
Any suggestion how to do this and i know this is possible. because if anyone can create it means that you can also create without any credentials in rest api right?
Hi Randy,
Yes, it is possible to create issues using the REST API.
You will want to ensure that the project permissions are set so that anyone can create an issue and the Reporter field is not required (set to optional).
When running your REST call, make sure you specify the correct project and no credentials are necessary:
Ex:
curl command
curl -X POST --data @data.txt -H "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/issue/
data.txt
{
"fields": {
"project":
{
"id": "10000"
},
"summary": "No REST for the Wicked.",
"description": "Creating of an issue using ids for projects and issue types using the REST API",
"issuetype": {
"id": "10001"
}
}
}
Regards,
Javier A.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.