Changelog/bulkfetch misrepresents version names

I’m currently trying to reconstruct the history of the fixVersions field on any given issue, from https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-changelog-bulkfetch-post . This is made complicated and unreliable by a few factors, including:

  • There seems to be no direct way to pull the fix version set at any given time. The change log only represents additions or removals to the fix version set.
  • The change log does not represent the field state at creation time, and I see no way to pull this. Instead, I’ve tried to infer it by seeing values in the final value of the field that must have been present at creation time because they didn’t show up in the change log.
  • The change log only represents versions by name, rather than ID; and there is no provision given to figure out whether and how a version has been renamed across history.

This all makes for a very frustrating experience when trying to reconstruct the fix version at any given time. If you can think of a more robust way of doing this, please let me know.

Hi @GregToombs, the IDs are there. from/to hold the version ID and fromString/toString the name as it was when the change happened. Bulkfetch drops the null keys so an add has no from at all.

{"field":"Fix Version","fieldtype":"jira","fieldId":"fixVersions","to":"10963","toString":"zz-bf-B"}

A rename writes no changelog row and doesn’t touch the old ones. Current name comes from GET /rest/api/3/version/{id}.

A deleted version 404s there, its removal row keeps from and fromString so the name survives in the string alone.

Probably the docs caused this, from is described as “The details of the original value.” with no mention of an ID. Found nothing in them calling the snapshot by design either.

On a test site a fixVersion set at creation didn’t show up in the changelog, so replaying backwards from the current fixVersions (by ID) is the route I’d keep. Didn’t check version merges or Data Center.