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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are these related to the cloud jira workflow transistion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you also provide me steps for checking out this worflow in textmode in cloud jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may need Admin rights to do this, but try …
Click on the gear icon and choose Issues.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.