GraphQL: Version related work

I know this is a beta feature things are changing, but asking anyways.

Previously I fetched jira version’s related work via grapql like this:

query getRelatedWork($id: ID!) {
  jira {
    version(
      id: $id
    ) {
      ... on JiraVersion {
        id
        name
        relatedWork {
          edges {
            cursor
            node {
              category
              title
              relatedWorkId
              url
            }
          }
        }
      }
    }
  }
}

However, this seemed to stop working, and the docs say that I should use relatedWorkV2 now. However, V2 doesn’t contain relatedWorkId or url fields at all, only title, category, and issue. Is there any way to fetch the id and URL anymore?

This works with relatedWorkV2, but as seen, fields are missing.

query getRelatedWork($id: ID!) {
  jira {
    version(
      id: $id
    ) {
      ... on JiraVersion {
        id
        name
        relatedWorkV2 {
          edges {
            cursor
            node {
              category
              title
              issue
            }
          }
        }
      }
    }
  }
}

Solved if anyone happens to look the same issue:

query getRelatedWork($id: ID!) {
  jira {
    version(
      id: $id
    ) {
      ... on JiraVersion {
        id
        name
        relatedWorkV2 {
          edges {
            cursor
            node {
              ...on JiraVersionRelatedWorkGenericLink {
                relatedWorkId
                category
                title
                url
              }
            }
          }
        }
      }
    }
  }
}

This code is giving me an error

{
“data”: null,
“errors”: [
{
“message”: “Variable ‘id’ has an invalid value: Variable ‘id’ has coerced Null value for NonNull type ‘ID!’”,
“locations”: [
{
“line”: 1,
“column”: 22
}
],
“extensions”: {
“errorSource”: “GRAPHQL_GATEWAY”,
“classification”: “ValidationError”
}
}
],

I feel i am missing some thing. Please let me know what i need use as an ID. I tried with cloudid.

It is not working