Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
Hello,
we are migrating projects between two different Jira cloud instances (in the source we have Tempo Timesheet, in the destination we have Clockwork but that does not matter) and we have a problem about worklogs due to this bug from Atlassian:
https://jira.atlassian.com/browse/JRACLOUD-72006
since Exalate is not a "slow human" but is sending different worklogs on the same issue quickly, we face the situation where, all the worklogs are correctly posted in the destination issue, but the time spent field on issue level is not showing the right total value (again, due to the Atlassian bug).
We are now asking your help to workaround this bug...
This is currenlty the part of the incoming script about worklogs:
issue.workLogs = workLogHelper.mergeWorkLogs(issue,replica,
{ w ->
w.author = nodeHelper.getUserByEmail(w.author?.email) ?: nodeHelper.getUserByFullName(w.author?.displayName.substring(w.author?.displayName.lastIndexOf(' ') + 1)) ?: defaultUser if(w.updateAuthor != null)
w.updateAuthor = nodeHelper.getUserByEmail(w.updateAuthor?.email) ?: nodeHelper.getUserByFullName(w.updateAuthor?.displayName.substring(w.updateAuthor?.displayName.lastIndexOf(' ') + 1)) ?: defaultUser
})
(Note: we needed to use substring to get only the lastname split by the firstname, otherwise your .getUserByFullName was matching "Claudio Menetti" also with "Claudio Somethingelse" and this I think is a bug on your end...)
The question for you are:
Thanks in advance for you help, BR
Claudio