Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to set the status of the Issue at creation using Rest API in JIRA version 7.13.5

Tekur HS November 5, 2019

Hi

Is it possible to set the status when it is created using REST api? We are using JIRA server 7.13.5 version. It would be of great help if we could create issue with the required status when it is created. 

I have tried to include the transition property when Posting the data to create issue api, but still the issue has new status.

If this is not possible, i would like to know if there is any other API available that can be used to set the status of the issue directly as using the transition API we are forced to traverse the workflow to set it to the desired status.

3 answers

1 vote
Payne
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.
November 5, 2019

We used the CSV file import method to migrate issues into our instance, and we were able to specify the desired status.

0 votes
Vladimir Taranchenko
Contributor
November 5, 2019

Add transition "all" to target statuses. Use contition "admins only" to hide it from users and use transitions for migration. After it y can delete "all" transitions.

0 votes
Warren
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.
November 5, 2019

Hi @Tekur HS 

In general, you can only do via the API what you are able to do within Jira, so if the status that you want to set the issue to has to go through 4 workflow steps in Jira, it will have to go through those same 4 steps via the API.

Tekur HS November 5, 2019

Thanks @Warren for the quick response, though does this mean that if we want to migrate some data to Jira, there is no way to create the issue with the desired status directly in Jira?

Warren
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.
November 5, 2019

Hi @Tekur HS 

I'm going to take a step back and ask a question first. When you talk of status, exactly what are you referring to? I want to ensure that we're both talking about the same thing.

Nic Brough -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.
November 11, 2019

Imports are the exception - you can specify what status the issue is imported in.

Suggest an answer

Log in or Sign up to answer