I know that it is not a good idea to use titlesec together with KOMA script, but it worked in the past. Now it does not work and since I rely on KOMA script I would like to replace the remaining titlesec code with something more generic or at least KOMA script compatible:
%--> chapter with 'chapter' + number + rule + name + rule
% --------------------------------
\titleformat{\chapter}[display] % {command}[shape]
{\usekomafont{chapter}\Large \color{black}} % format
{\LARGE\MakeUppercase{\chaptertitlename}% % label
\Huge~\thechapter \filright}%
{1pt} % sep (from chapternumber)
{%
\titlerule \vspace{0.9pc} %
\filright
\color{sectioncolor}
} % (before chaptertitle and after)
[\color{black} \vspace{0.9pc} \filright {\titlerule}] %
% --------------------------------
%--> part with 'PART' + number at frame and name inside frame
% --------------------------------
\titleformat{\part}[frame]
{\usekomafont{part}\Large\color{black}\centering} % format
% label: PART I
{\enspace \LARGE\MakeUppercase{\partname}%
\centering \Huge~\thepart \enspace }%
% sep (from partnumber)
{1.5\baselineskip}
% (before chaptertitle and after)
{\color{sectioncolor}%
\filcenter}
% --------------------------------
% spacing before and after sections
\titlespacing*{\section}{0pt}{*2.0}{*0.5}
\titlespacing*{\subsection}{0pt}{*1.5}{*0.5}
\titlespacing*{\subsubsection}{0pt}{*1.5}{*0.5}
I have no code prepared simply because this is to me LateX or KOMA internal code I do not know well enough.
The code is used in my template, thus the solution is going to be used by many other people as well and public anyway.
EDIT: MWE
\documentclass{scrbook}
\usepackage{xcolor}
\usepackage{titlesec}
% --------------------------------
\titleformat{\chapter}[display] % {command}[shape]
{\usekomafont{chapter}\Large \color{black}} % format
{\LARGE\MakeUppercase{\chaptertitlename}% % label
\Huge~\thechapter \filright}%
{1pt} % sep (from chapternumber)
{%
\titlerule \vspace{0.9pc} %
\filright
\color{blue}
} % (before chaptertitle and after)
[\color{black} \vspace{0.9pc} \filright {\titlerule}] %
% --------------------------------
%--> part with 'PART' + number at frame and name inside frame
% --------------------------------
\titleformat{\part}[frame]
{\usekomafont{part}\Large\color{black}\centering} % format
% label: PART I
{\enspace \LARGE\MakeUppercase{\partname}%
\centering \Huge~\thepart \enspace }%
% sep (from partnumber)
{1.5\baselineskip}
% (before chaptertitle and after)
{\color{blue}%
\filcenter}
% --------------------------------
% spacing before and after sections
\titlespacing*{\section}{0pt}{*2.0}{*0.5}
\titlespacing*{\subsection}{0pt}{*1.5}{*0.5}
\titlespacing*{\subsubsection}{0pt}{*1.5}{*0.5}
\begin{document}
\part{Part Title}
\chapter{Introduction}
\subsection*{title}
\subsubsection*{title}
\end{document}
titlesec
with KOMA. But it does work.