Forums

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

Unable to add 'issueId' to a relatedwork item on a Product version - via Jira API

Chris Couldridge January 19, 2024

Hello,

I'm struggling with adding a Jira ticket as a 'relatedwork' items to a Project version via the API. I want the related work to show up as a linked Jira so it shows the assignee and status in the version page.

I'm following the API v3 documentation

I've tried specifying a valid 'issueId' in the payload I am sending to the API, the response echoes the 'issueId':

Screenshot 2024-01-19 at 09.05.31.png

But when I GET all the relatedwork items for the version, this 'issueId' value is not returned and the relatedwork just shows up as a link with options to create or link an issue (but I want that to be automatically linked):

Screenshot 2024-01-19 at 09.10.25.png

Is this a known limitation or a bug? I noticed in the docs it says "You can only create a generic link type of related works via this API." Is this the limitation? If so this text could prob be made clearer?

Also in the 'child properties' of the documentation for this endpoint it says that 'issueId' is the title of the related work. This is wrong I think?

Screenshot 2024-01-19 at 09.17.14.png

Thanks in advance for any help...

Chris

2 answers

0 votes
Vitor Honna
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!
October 29, 2024

I'm having the exact same problem. Any updates?

0 votes
Chris Couldridge February 8, 2024

In the end I abandoned trying to add the `issueId` value and just retrieved it from the "url"

Suggest an answer

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

Atlassian Community Events