Forums

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

Regarding about change transition of issue in plugin devlopment

Shubham Sharma August 12, 2025

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.

3 answers

0 votes
Radek Dostál
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.
August 13, 2025

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.

0 votes
Stefan Stadler
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.
August 12, 2025

Hi @Shubham Sharma 

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

Shubham Sharma August 12, 2025

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.

Stefan Stadler
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.
August 12, 2025

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.

Like Shubham Sharma likes this
0 votes
Trudy Claspill
Community Champion
August 12, 2025

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?

Shubham Sharma August 12, 2025

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.

Suggest an answer

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

Atlassian Community Events