Create issue by JIRA REST API

MIS March 12, 2015

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
MIS March 12, 2015

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

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2015

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

MIS March 12, 2015

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.

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2015

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

Suggest an answer

Log in or Sign up to answer