Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create issue in jira without auth/ logging in using rest api

RandyD April 23, 2018

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?

1 answer

1 accepted

1 vote
Answer accepted
Javi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2018

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. 

Suggest an answer

Log in or Sign up to answer