Create issue by JIRA REST API

Dear ALL:

When I create issue by same account on web page, I can see my open issue list.

But I create issue by JIRA REST API, and get correct response from console. But I can't find any issue on my open issue list when I login Jira .

2015-03-12_180642.jpg

 

2015-03-12_180723.jpg

my  test command
curl D -u adams:adams -X POST --data @test.txt -H "Content-Type: application/json" http://192.168.168.177:8080/rest/api/2/issue/

test.txt

{
"fields": {
"project":

{ "key": "MIS" }

,
"summary": "REST ye merry gentlemen.",
"components": [

{"name": "test"}

],
"issuetype":

{"name": "Bug"}

,
"security":

{"id": "10000"}


"priority":

{"name": "Major"}

,
"duedate": "2015-03-17",
"assignee":

{"name": "adams"}


"reporter":

{"name": "adams"}


"description": "description for test",
"labels": ["bugfix", "blitz_test"],
"customfield_10005": ["remark_test1"],
"customfield_10300": [

{"value": "Japan"}

,

{"value": "USA"}

]
}
}

 

2 answers

0 vote

Looks like you do not have "Browse" project permissions in the project. Can you check?

I have "Browser" permission in the project. I try create issue with json by JIRA REST API, and get correct response key as "MIS-45". But I can't find any issue on my open issue list when I login Jira . I still only see some issues that created by JIRA web page on my open issue list.

 2015-03-13_091948.jpg

 

2015-03-13_091304.jpg

 

2015-03-13_091440.jpg

Can you do a full reindexing and see if the issue appears in search after that?

I create a new project from web page again, and create a issue with json by JIRA REST API. I can see the issue from my open issue list. I guest that there are some problem in old project permission.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,314 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot