Skip to end of banner
Go to start of banner

lastFieldHistory

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Description

Returns the last change details (user, date, field, oldValue, newValue) from the selected issue's history.

Parameters

Return Type

JFieldChange

Examples

Example 1

string[] lastChange = lastFieldHistory(key);
string ret = "Issue " + key + " was last changed on " + lastChange[1] + " by " + userFullName(lastChange[0]);
ret += ": Field " + lastChange[2] + " from>>" + lastChange[3] + "<<to>>" + lastChange[4] + "<<";
return ret;

Result: Issue DEMO-5 was last changed on 2013-08-20 16:47:57 by Admin User: Field assignee from >>Admin User<< to >>Test User<<

Example 2

JFieldChange last = lastFieldHistory("TEST -10");
runnerLog ("LFH:" + last.user + "Field:" + last.field + "Val:" + last.oldVal + " -> " + last.newVal);

Result: Issue DEMO-5 was last changed on 2013-08-20 16:47:57 by Admin User: Field assignee from >>Admin User<< to >>Test User<<

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels