Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I am trying to come up with a way to reopen a task back to the step it was in before. So I have a designed workflow with approvals and each step has an approved denied step. Denied goes to closed. Is there a way to reopen the ticket and have it go to the previous Step in the approval process only? I do not want to have the reopen be a way to by pass a approval step or force it to go through the whole thing again. I think Groovy is the best way but i lack the skills to write a groovy script.
You don't need any scripting to do this, unless you want to automate it for some reason.
To "go back" in a workflow, you need to create a transition from the current step to the previous one (or earlier). If you do need to automate it, you still need that transition for the automation to use it!
I am aware of how to create a step back. That part is easy. I want to prevent it from going from closed to a step that it has not been in there by bypassing the approval process. Here is the proposed workflow.
IR-4568.JPG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, I see, I'm afraid I didn't get that from the question.
Yes, you can script this - have a field that says "previous status", set it as you go into "closed" and then use conditions to say "can only go back to status named in that field". Or you can script the condition
But, have a look at the JIRA Misc workflow add-on before you dive into Script Runner - it has "previous status" conditions in it already. If you already have SR, then use it (it can do everything JMWE can do, and a lot more), but if you don't have other uses for SR, this might be a better option for you. (Yes, I'm doing my company out of a possible SR sale there, but JMWE may be better in this case, and I don't want to be too biased. But, SR is great!)
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.