Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Realtedwork REST API of a Project version is always empty

Sharad Regoti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2025

I am trying to get all issues of a project version using the REST API, 

GET https://host/rest/api/2/version/10782/relatedwork

But it always returns an empty response. Even though it has 76 issues in it.

I have verified the count using this API, https://host/rest/api/2/version/10782/relatedIssueCounts

Alternatively, I tried to get all issues with the JQL search, but I was unable to get the query to work.

 

1 answer

1 accepted

4 votes
Answer accepted
Tuncay Senturk _Snapbytes_
Community Champion
August 3, 2025

Hi @Sharad Regoti 

Welcome to the Community!

The /relatedwork endpoint isn't designed to return the list of issues within a version, it's the related issues for the given version id. You can add links to a version using the new Related work feature!

You can use the below JQL search endpoint to get those work items within the version

GET /rest/api/2/search?jql=fixVersion=10782

The relatedIssuesCounts returns the following counts for a version:

  • Number of issues where the fixVersion is set to the version.
  • Number of issues where the affectedVersion is set to the version.
  • Number of issues where a version custom field is set to the version.

(https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-version-id-relatedissuecounts-get)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events