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.