# How do I Two Way sync Status between Jira and GitHub

**URL:** <https://community.exalate.com/t/how-do-i-two-way-sync-status-between-jira-and-github/4796>\
**Category:** General Questions\
**Tags:** exalate, cloud-jira, github, migrated\_question\
**Created:** [November 4, 2024, 7:24am UTC](https://community.exalate.com/t/how-do-i-two-way-sync-status-between-jira-and-github/4796 "2024-11-04T07:24:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:24am UTC](https://community.exalate.com/t/how-do-i-two-way-sync-status-between-jira-and-github/4796/1 "2024-11-04T07:24:29Z")

</div>

_Originally asked by John Roca on 29 July 2021 [(original question)](https://oldcommunity.exalate.com/questions/30050411)_

* * *

I am trying to sync up issues status between Jira and GitHub. I have it so that if I change status in Jira it will Change in GitHub but when I do it vice Verse Jira does not reflect the status change from GitHub. Can someone please review my script from both the Jira and GitHub Side.

 ![](https://europe1.discourse-cdn.com/flex018/uploads/exalate1/original/1X/1f866bd71c1b02910655e55f18137f2ccf40fa13.png) ![](https://europe1.discourse-cdn.com/flex018/uploads/exalate1/original/1X/7f952f49490799ab59efac313b0ce72477b0cbce.png)

* * *

#### Comments:

> **John Roca commented on 30 July 2021**
>
> > hi Ariel Aguilar thanks for you help! I actually continued to mess around with the code it turned out that on the Jira side the words “Open” and “Closed” needed to start with a lowercase letter to match the form of the incoming status from GitHub. it now works. I appreciate your answer response though.

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:24am UTC](https://community.exalate.com/t/how-do-i-two-way-sync-status-between-jira-and-github/4796/2 "2024-11-04T07:24:30Z")

</div>

_Answer by Ariel Aguilar on 30 July 2021_

Hi there,

I see the problem is the mapping on the Jira incoming script. If the GitHub script is working from Jira to Gihub, then the Jira Incoming script should be something like:

```auto
def statusMap = [
            "Open": "To Do",
            "Working on it": "In Progress",
            "Closed" : "Done"
]
def remoteStatusName = replica.status.name
issue.setStatus(statusMap[remoteStatusName] ?: remoteStatusName)

```

Let me know if this works for you.

Kind regards,

Ariel

* * *
