I have scripted field and name is last priority info this field will reflected for specific project all type of incidents
Requirement / scenario(script runner)
Scripted filed should shown the value of previous updated priority filed
Example:
I have 3 history updated for priority field for issue
1) From low to high
2) From High to medium
3) From Medium to low
Hear latest update one is 3rd one that is "From Medium to low"
Hear scripted filed needs to show "Medium"
Required code for above requirement