I want to change the status field for a jira issue
Like i have to status A and B and i want to change the transition from B to A
but i dont have transition between them in the workflow
so is there any api to do that work in plugin devlopment.
I am using Atlassian plugin devlopement
and i want to perform this task using Jira api or by any predefine function
my limitation is this, I can’t add reverse transition in workflow.
It's a plugin, you have full access to the whole system, you can do anything you want.
That said, don't. Add a transition to the workflow and don't try to corrupt data by using hacky ways without knowing what it entails. If needed, you can set a condition on the transition to hide it from other users. API-wise you can also `skipConditions` in code to disregard the condition if you're unsure that the transitioning user might not be able to pass it.
as far as I am aware, there is no way - even for plugins - to do transitions that are not defined.
However, what prevents you from adding a transition that has a condition to only allow administrator users to use it? This would allow admins to use the transition while it is not visible for the others to be used.
Hope this helps!
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian have its own undo plugin in marketplace in that they are able to do it that i am trying to.
If they did it then there will be a way to do so.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also sure that this is possible somehow. But you are also asking about any kind of API. I doubt there will be an official API that will allow such a behavior as this appears to be against the principles that a workflow is covering.
However, I will be happy to learn if there is such a way using an official API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Shubham Sharma
Welcome to the Atlassian community.
I'm not sure if I understand your question.
Are you asking if there is an API that will let you add a transition to a workflow?
Or are you asking if there is an API that will let you change an issue status from B to A when no transition exists for that within the applicable workflow?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am asking about this:
Is there an API that will let me change an issue status from B to A when no transition exists for that within the applicable workflow.
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.