I want to change the transition of issue using 'Rest API' for my automation release tool. Is there any way i can get all the transitions of a project using RESTAPI
I have no idea if this is documented anywhere, but I came across it a while back in some search somewhere. Here's what I have found that will give you workflow info. Still haven't found a way to grab workflow diagram images in bulk, but maybe one day!
(Of course you'll substitute your base URL, project key, and workflow name where appropriate. You might also need to be a Jira admin to get the info, but I'm not sure.)
@WW Thanks, the best I have found so far. 👍
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it does seem strange that we are able to set a transition id on issue creation, but there is no way to get the list of possible transition Ids beforehand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I guess what you want, you want to get all transitions, wich are available for an issue in a project. If so, then you should use GET /rest/api/2/issue/{issueIdOrKey}/transitions
You can find more info here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for you quick reply Alexey.
This is for a particular issue. But i want to know how many transitions for that project itself. Do you have any idea.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tranisitions are entities of workflows. And you attach workflows to projects. Projects do not have any statuses. Issues have statuses. That is why you transition issues, not projects. If you want to know all transisitons for a project, then you have to choose all workflows for a project and then choose all transitions within these workflows. Are you sure you need this info?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alexey Matveev I have the same requirement to get all the transitions for one project. Can you help give me some guide on how to get that? what does workflow mean? thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alexey Matveev [cPrime] I have the same requirement. Can you please update us on this? How can I get all the transition of Project. I can get all workflows using /rest/api/3/workflow API but I cant get transitions. Please reply on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think what you are asking is to get all transitions for a workflow not for a project. If so, then I do not know how it is possible currently
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.