This function returns the previous value of the given field for the current issue.
Syntax
previousValue(textField) #Output: Text
Variant of number and date-time fields.
Syntax
previousValue(numberField) #Output: Number
Use cases and examples
Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
---|---|---|---|---|---|
Add links to the issues in a ScriptRunner Issue Picker field | Create issue link action Delete issue link action | issueKeysToIssueList() toString() toStringList() replaceAll() previousValue() | |||
Set assignee based on a former assignee | previousValue() | ||||
Create an issue with a custom summary | previousValue() | ||||
Prioritize the issues globally | indexOf() previousValue() issuesFromJQL() |