is it possible to go from Postponed state back to the state from where it came from automatically by using scriptrunner or jsu ?
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
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
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.
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