Forums

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

Regarding status Transistion in Jira. Unable to find an api for changing the status as no-run or re-

Esther Evangeline. V December 16, 2020

I am actually trying to update the status of the issue. And when it is already in one status like pass/fail we are unable to change it to another without making a change to no-run. We are using the API call to update status or transistion.

https://jiraurl/rest/api/3/issue/"+jiraId +"/transitions

 with the body of the request as:

{    "transition": {        "id""21"    }}

where id: 21 is for Pass,31 for Fail and so on. But no Id for No-run which is the initial status

1 answer

1 accepted

0 votes
Answer accepted
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.
December 17, 2020

Hi @Esther Evangeline. V 

That sounds like the issue is your workflow, not the API call. For an issue which has this problem via the API, have you tried within Jira to see what you can / can't do?

In theory, the API will only allow you to do what you can do manually within Jira, for the same user. So check what user the API is called with and ensure that this user has the correct permissions.

Esther Evangeline. V December 17, 2020

Yes manually we have to switch back to no-run and then change the next status. So is there any way that we can get it updated through api. I am not sure of the id for No-Run status. all the other status id can be fetched from api. Is there any other api to update the status or the transistion for jira cloud

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.
December 17, 2020

Hi @Esther Evangeline. V 

Just to take a step back here first ….

I think you should look in Jira at the workflow and understand what it's set up for - is this the correct workflow or do you want to change it so that you don't need to go to No-Run? (Remember that your statuses don't necessarily mean a lot to me, because each instance of Jira can set up their own statuses)

Looking at the workflow in Text mode will have the status id for each one, so you should be able to get the id for No-Run - see below. 

Screenshot_8.jpg

Esther Evangeline. V December 17, 2020

Are these related to the cloud jira workflow transistion.

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.
December 17, 2020

Yes that's a screenshot from one of my workflows, as an example. If you (or an Administrator) look at your workflow, you should be able to get all the status ids.

Esther Evangeline. V December 17, 2020

Thanks for the information. I'll check that out.

Esther Evangeline. V December 17, 2020

Can you also provide me steps for checking out this worflow in textmode in cloud 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.
December 17, 2020

Hi @Esther Evangeline. V 

You may need Admin rights to do this, but try …

Click on the gear icon and choose Issues

Screenshot_9.jpg

 

From the left hand menu, click on Workflows

On the row for the workflow that you're interested in, click Edit on the right hand side.

Near the top of the screen that opens, there is a button for Diagram and one for Text.

Diagram mode will allow you to see the transitions and what is / isn't allowed.

Esther Evangeline. V December 17, 2020

Thanks a lot Warren. Much help. Will try this out.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events