Connecting two JSM instances

Nadezhda Hristova January 19, 2023

Dear Atlassian community,

 

We are expecting to team up with another company on a certain project, so we are planning to connect our Jira instances. As for now, I am looking for a way to do it via API and simple automation (no third-party add-ons). The idea is for them to generate tickets for us through RUN or other triggers, to link the two tickets and, after that, I will need a script for copying the comments from ours to their issue and vice versa.

Could you suggest any options for this case?

P.S. I will get to find out if the other JSM is Cloud or Server based.

Regards,
Nadezhda

1 answer

1 vote
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 19, 2023

Hey @Nadezhda Hristova

since you're looking for a solution without apps, I'd recommend Automation in order to keep your tickets in sync. It's a bit cumbersome to do so, but it's possible in general.

You'd need to setup some automation rules like this in both instances:

  • Send the creation of an issue
    • When: Issue created
    • If: Issue matches JQL (if you only want to sync specific ones)
    • Then: Send web request to Automation rule of other instance
  • Receive issue creation
    • When: Incoming webhook
    • Then: Create a new Issue
      • with the details received in the webhook
      • make sure to store the issue key of the other side in a custom field for later reference
  • Send the update of an issue
    • When: Issue updated (& possibly more events)
    • If: Issue matches JQL (if you only want to sync specific ones)
    • Then: Send web request to Automation rule of other instance
  • Receive Issue Updates
    • When: Incoming webhook
      • run a JQL to set the related issue into the context
    • Then: Edit issue fields
  • Send the comments
    • When: Issue Commented
    • Then: Send web request to Automation rule of other instance
  • Receive comments
    • When: Incoming webhook
      • run a JQL to set the related issue into the context
    • Then: add comment to issue

I'd recommend to try out yourself if this solution works for you - or if it is too cumbersome. If that's the case, you can still go for an issue sync app from the marketplace. There are a couple of them. I'm part of the team behind Backbone Issue Sync and also happy to elaborate on that solution if you wish.

Cheers,
Matthias.

Nadezhda Hristova January 19, 2023

Hello @Matthias Gaiser _K15t_ ,

 

Thank you very much for the rapid and elaborate response :) 

I think I got the idea. Is it possible If you could give me an example URL for the web request? 

And also I cannot really figure out how to link the issues. A bit more help will be very appreciated :) 

Cheers,
Nadezhda

Suggest an answer

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

Atlassian Community Events