Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA JSON Create issue with status = "Resolved"

MikeFitz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2013

I am using C# and creating issues for our test system.
The issues are test results for our automated test system.
If the test point fails and we already have a bug registered for the test point I want to create the issue as "Status = Resolved"
I tried adding this to the JSON message and it did not work.
For example:

{
	"fields" : 
	{
	
		"status" : { "name" : "Resolved"},
		...
	}
}

Is it possible to create an issue and mark it resolved at the same time, as above?
If no, what is the best way to achieve this?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Matt Doar
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.
April 3, 2013

The JIRA JSON Importer can set the resolution field in issues that it imports. But usually the resolution field (not Resolved) is not on the edit or create screen for an issue (and it should not be there). You could create the issue and then change the status using the appropriate REST method. More information at https://answers.atlassian.com/questions/107630/jira-how-to-change-issue-status-via-rest

TAGS
AUG Leaders

Atlassian Community Events