1 2 3 4 5 6 7 8 9 10 11 12 13
function isFieldChanged(string issueKey, string fieldName, string newValue) { JFieldChange[] changes = getFieldChanges(issueKey, fieldName); int size = arraySize(changes); string previousValue = changes[size - 1].newVal; if(newValue != previousValue) { return true; } return false; }
You can clone a snippet to your computer for local editing. Learn more.