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

srikanth kocherlakota July 2, 2021

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
Daniel Ebers
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.
July 9, 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

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2021

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

srikanth kocherlakota July 2, 2021

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

Suggest an answer

Log in or Sign up to answer