Hi, I don’t see many questions on the Polarion REST API here, but the documentation links to this community forum. If there’s a better place for this question please let me know.
Our org has many Polarion projects, with many work items in different projects linked to each other. I would like to use a REST API to get all the linked work items for a given work item. My problem is that the API I’m using only includes linked work items from within the specified project, not other projects.
So assume I have ProjectA and ProjectB, and ProjectA has WorkitemA1 and WorkItemA2 and ProjectB has WorkItemB1. And WorkItemA1 is linked to both WorkItemA2 and WorkItemB1. I can see they are linked to each other through the Polarion web app, it shows both links on the page for WorkItemA1, even WorkItemB1 which is in ProjectB.
If I try to get this same info via REST API, I can do getLinkedWorkItems like this:
GET /projects/ProjectA/workitems/WorkItemA1/linkedworkitems
But this will only return WorkItemA2 as a linked work item. If I try something like
GET /projects/ProjectB/workitems/WorkItemA1/linkedworkitems
That of course return Not Found, presumably because WorkItemA1 is not in ProjectB. But I don’t see a way to specificy “for WorkItemA1 in ProjectA, get me linked work items in ProjectB” OR just “get me ALL linked work items”.
How can I do this?