I'm trying to copy conditional formatting rules from one of my sheets to others, in Google Sheets. I know, I can just copy and use "paste special" to copy/paste them in, but I specifically want to use a script, because I've set up a script that automatically creates a new sheet, and I want to apply the conditional formatting to all of the sheets I make, because the whole spreadsheet is a sort of log, and the specific column that contains the conditional formatting applies to the entire sheet. Here's what I have:

You can use one of the following options:
copyFormatToRange(sheet, column, columnEnd, row, rowEnd)copyFormatToRange(gridId, column, columnEnd, row, rowEnd)Note that this solution is good only for passing the conditional format from one sheet to another one in the same spreadsheet.