Skip to end of metadata
Go to start of metadata

Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.

The availability of the users personal data may be impacted by the recent changes by Atlassian in order to meet GDPR compliance. See the following for more information:

Availability

This routine is available starting with katl-commons 4.0.0.

This routine is available for Jira server and cloud deployment options.

Syntax

lastIssueChanges(issueKey)

Description

Returns the last changes details for all the fields touched by user (array of JFieldChange) from the selected issue's history.

Parameters

Parameter name

Type

Required

Description

issue key

String

Yes

Key of the selected issue.

Return type

JFieldChange []

The return value is an array of structures documenting what the user has changed on the issue.

Example

JFieldChange [] changes = lastIssueChanges("TEST-10");
for(number i = 0; i < size(changes); i++) {
    runnerLog("U:" + changes[i].user + " Field:" + changes[i].field + " Val:" + changes[i].oldVal + " -> " + changes[i].newVal);
}

See also