How to reduce remaining estimate?

const saferSeconds = Math.max(1, Math.round(Number(timeSpentSeconds)));

// Jira duration string, e.g. "30m", "1h 15m"
const reduceBy = saferSeconds;

const url = route`/rest/api/3/issue/${issueKey}/worklog?adjustEstimate=manual&reduceBy=${reduceBy}`;

How to reduce remaining estimate?

I am tried all options in documentation but not help.

Hi @matti.kiviharju – It seems like your reduceBy value is not formatted as a Jira duration string. Your inline comment implies the correct formatting of "30m", "1h 15m", etc., but I don’t see where that formatting is applied by the code.

Thanks. Antigravity skills is out-dated even I installed all Atlassian ones.