Snippets

Jonathan Hult Jira - SIL - has field changed?

Created by Jonathan Hult
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;
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.