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

This widget could not be displayed.

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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

564 views 25 15
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