Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Last status

Ruben May 28, 2018

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?

1 answer

0 votes
Gezim Shehu [Communardo]
Community Champion
May 28, 2018

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?

Ruben May 30, 2018

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. 

Gezim Shehu [Communardo]
Community Champion
May 30, 2018

Perfect. Glad you solved it.

 

If it was only 1 transition though, Script Runner offers a great built in condition for that.

Ruben May 30, 2018

@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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events