Sync Jira with Github

Originally asked by Dominic Lindner on 16 January 2020 (original question)


Hello Exalate Team,

We use since a few days Exalate to Sync our Github with Jira. We used before just Github and we want to sync it now with Jira. We use the Trial Key and we are willing to buy it if you can help us with some points:

How we can sync the Users (all Usernames are Exalate)
How we can Sync Screenshots (they are never in the sync)
How we can Sync the Description (Markdown) correctly (the format is killed)
Is there a way to a an automatic sync for specific rules?

Thanks!Quelle: Jira Cloud (old community)


Answer by Dominic Lindner on 04 February 2020

Thanks! I attach a screenshot for Number 3 (Description Sync). Thanks!

You can find it here; https://cloud.owncloud.com/index.php/s/3e1vGq6qt2SzJcu

Thanks for help!


Answer by André Leroy-Beaulieu Castro on 16 January 2020

Hi Dominic,

Thanks for raising this question. First of all, can you send over your current Github and Jira scripts? a screenshot will be enough.

  1. User syncing: if you are looking to synchronize the reporter/assignee you can do something like this:

Outgoing (Github):

replica.assignee   = issue.assignees

Incoming (Github):

def remoteAssignee = nodeHelper.getUserByEmail(replica.assignee?.email)
if(remoteAssignee){
  issue.assignees     = remoteAssignee
}

Outgoing (Jira):

replica.assignee   = issue.assignee

Incoming (Jira):

def remoteAssignee = nodeHelper.getUserByEmail(replica.assignee?.email)
if(remoteAssignee){
  issue.assignee     = remoteAssignee
}

The same would be enough for the reporter field, except the field is called “user” in Github.

   2\. **Screenshots:** Exalate does not support attachment synchronization unfortunately.




  3\. **Description with correct format:** Can you add a bit more context? Maybe attach some screenshots of how it should look and how the description is looking right now.




  4\. **Automatic sync for specific rules:** We call this a "trigger", we have a documentation page that explains this in detail, check it out: <https://docs.idalko.com/exalate/x/XwOOAQ>

Thanks,

André