is it possible to go from Postponed state back to the state from where it came from automatically by using scriptrunner or jsu ?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.