diff --git a/server/sonar-web/src/main/js/components/issue/Issue.js b/server/sonar-web/src/main/js/components/issue/Issue.js index 01c12f3b679..5717a060e3b 100644 --- a/server/sonar-web/src/main/js/components/issue/Issue.js +++ b/server/sonar-web/src/main/js/components/issue/Issue.js @@ -65,6 +65,12 @@ class Issue extends React.PureComponent { if (!prevProps.selected && this.props.selected) { this.bindShortcuts(); } + + // $FlowFixMe resolution doesn't exist in type `Model` + const { resolution } = this.props.issue; + if (!prevProps.issue.resolution && ['FALSE-POSITIVE', 'WONTFIX'].includes(resolution)) { + this.issueView.comment({ fromTransition: true }); + } } componentWillUnmount() {