Is it useful to track dev time with CI/CD?
You can use the rich jira rest API for this kind of automation work. Jira API provides mechanism to update logged hours using PUT /rest/api/2/issue/{issueIdOrKey}/worklog/{id}

You can use this rest API endpoint to update the corresponding issue with the difference of first commit timestamp and first successful CD.

Find more about it here.