return this.getActionsResponse({ type: data.type }, data.issue);
};
- handleSetIssueSeverity = (data: { impacts?: string; issue: string; severity?: string }) => {
+ handleSetIssueSeverity = (data: { impact?: string; issue: string; severity?: string }) => {
const issueDataSelected = this.list.find((l) => l.issue.key === data.issue);
if (!issueDataSelected) {
throw new Error(`Coulnd't find issue for key ${data.issue}`);
}
- const parsedImpact = data.impacts?.split('=');
+ const parsedImpact = data.impact?.split('=');
return this.getActionsResponse(
- data.impacts
+ data.impact
? {
impacts: issueDataSelected.issue.impacts.map((impact) =>
impact.softwareQuality === parsedImpact?.[0]
const { issue } = this.props;
const data = quality
- ? { issue: issue.key, impacts: `${quality}=${severity}` }
+ ? { issue: issue.key, impact: `${quality}=${severity}` }
: { issue: issue.key, severity: severity as IssueSeverity };
const severityBefore = quality
const { issue } = props;
const data = quality
- ? { issue: issue.key, impacts: `${quality}=${severity}` }
+ ? { issue: issue.key, impact: `${quality}=${severity}` }
: { issue: issue.key, severity: severity as IssueSeverity };
const severityBefore = quality