I’m working with two different Jira instances (A and B) that are connected. I can manually create links between issues in A and B, but I’m not sure how to do this using the API.
I know how to create issue links within a single instance, but I’m stumped on how to specify the target issue when it’s in a different instance.
I don’t want to use remoteLink because it doesn’t provide the full functionality I need. I’m looking for a real connection that updates statuses.
Has anyone figured out how to create these cross-instance issue links programmatically? Any tips or code examples would be super helpful!
I’ve encountered this challenge before. Unfortunately, there’s no native API support for cross-instance issue linking in Jira. The functionality you’re seeking typically requires custom development or third-party solutions. One approach I’ve used is implementing a middleware service that acts as a bridge between the two instances, handling the creation and synchronization of links. This involves writing custom code to interact with both Jira APIs simultaneously. It’s not a trivial task, but it can achieve the full functionality you’re after. Consider reaching out to Atlassian Marketplace vendors who specialize in Jira integrations; they might have pre-built solutions that could save you significant development time.
I’ve tackled this problem in a previous project. Cross-instance linking via API is indeed tricky. We ended up building a custom solution using Jira’s app development framework. It involved creating a custom field to store the remote issue key and developing listeners to keep the linked issues in sync.
The process was complex, requiring deep knowledge of Jira’s internals and some creative problem-solving. We had to implement custom REST endpoints to handle the cross-instance communication and ensure proper security measures were in place.
While it’s not a plug-and-play solution, it worked well for our needs. If you have the resources, this approach might be worth considering. Just be prepared for a significant development effort and thorough testing to ensure reliability across both instances.
hey, ive been there. cross-instance linking thru jira api just isnt supported out-of-box. you might need a custom plugin or atlassian dev work. its messy but the only workaround now. good luck!