When using the Directive Generator, the generator for when is missing isRestartedRun().
Steps to recreate
1. Go to the Declarative Directive Generator via http://22.214.171.124:8080/job/your-pipeline-job/directive-generator/
2. Pick the Sample Directive: when
3. Look in the dropdown for When Condition. I was expecting to see `isRestartedRun`, but it's not there.