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 votes

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,002 views 2 7
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