I’m trying to get the worklogs of issues via the API. For records that were previously moved from project X to project Y, the worklogs still appear under the old project. For example: an issue was in project XYZ, a worklog was entered in January, then the issue was moved to project ABC. Now, those worklogs should appear under project ABC, but they are still showing up under project XYZ. How can I fix this?
Hi @İclal Aslan ,
In my understaing there isn't a way to get the old worklog with new project key.
Maybe the solution is getting all the project keys of the project (new key and old key) and replace the old with the new one.
This api should help you on getting both project keys:
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-projects/#api-rest-api-2-project-projectidorkey-get
Using the parameter "expand" with "projectKeys
"
I hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.