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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

711 views 6 13
Read article

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