This function returns the previous value of the given field for the current issue.
Bash
previousValue(textField) #Output: Text
Variant of number and date-time fields.
Bash
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() | |||
| Prioritize the issues globally |
|
indexOf() previousValue() issuesFromJQL() | |||
| Create an issue with a custom summary |
|
previousValue() |