Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

is it possible to go from Postponed state back to the state from where it came from?

is it possible to go from Postponed state back to the state from where it came from automatically by using scriptrunner or jsu ?

2 answers

0 votes

Hi, yes you can write a listener or a postfunction in your workflow to achieve this. But why do you need to come back to the previous workflow status automatically ? May be you need to review your this step with your project

Hi Mohammed,

    We had a workflow as below statuses

open -> review -> approved -> scheduled -> inprogress -> resolved -> closed ->reopen

Postponed and Rejected statuses are global 

Once the ticket is scheduled, we have to postponed in some cases, Once the status moves to postponed, again we need to reopen and then we need to review and approved, Already we have all the approvals we dont want to back once again for approvals, so we need to move the status postponed to scheduled automatically

0 votes
Daniel Ebers Community Leader Jul 09, 2021

Hi @srikanth kocherlakota

using JSU the following way seems feasible:

1.) on a transition TO status 'postponed' capture the previous status in a custom field.
     Coming from status scheduled the value to capture in a field like "previous status" would
     then indeed be "scheduled".
2.) Create a new transition from "postponed" to "scheduled". In case you need several statuses
     where the user should transition an issue to do the same for those.
3.) Set up a Condition according to https://community.atlassian.com/t5/Jira-questions 
    /Workflow-status-changes-moving-back-to-previous-status-only/qaq-p/927089#M297452
    so it will be only visible if the "previous status" is of "scheduled".

I hope you like this approach. In case you have the chance to test it let us know if it worked.

In general, the linked above thread (https://community.atlassian.com/t5/Jira-questions/is-it-possible-to-go-from-Postponed-state-back-to-the-state-from/qaq-p/1740053) offers some valuable discussion - in case you want to review how users did it in the past.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you