I can't find any function for it, so i decided to ask here..
I'm wanting my ticket to return to the last status automatically.
I don't mind write code for it, but it seems that the laststatus isn't easy to come by. Is there anyway to get the laststatus from the issue id? or do i have to create a field and populate that field with the previous status each time?
Hi,
Can you explain your desired use?
Meaning should this be a condition for one specific transition?
Or do you have an open status workflow, ALL to ALL and you want to transition automatically on the previous status based on some criteria?
or else?
Dear @Gezim Shehu [Communardo] i managed to solve it using a script someone else had used with an additional field.
Essentially its:
"Or do you have an open status workflow, ALL to ALL and you want to transition automatically on the previous status based on some criteria?"
I have a transition that sends an email, but i want it to return to the previous status afterwards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect. Glad you solved it.
If it was only 1 transition though, Script Runner offers a great built in condition for that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gezim Shehu [Communardo] the transition going to the status is an ALL transition, but it has 3 transitions coming out of it.
That's the reason I wanted to be able to somehow note the last status, so I could program which transition for it to go back to, depending on which status it came from.
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.