# Customfields formatting bi-directionally from Azure Devops to Jira Cloud

**URL:** <https://community.exalate.com/t/customfields-formatting-bi-directionally-from-azure-devops-to-jira-cloud/5241>\
**Category:** General Questions\
**Tags:** exalate, azuredevops-jiraclou, jira-cloud, migrated\_question\
**Created:** [November 4, 2024, 7:52am UTC](https://community.exalate.com/t/customfields-formatting-bi-directionally-from-azure-devops-to-jira-cloud/5241 "2024-11-04T07:52:45Z")\
**Posts on this page:** 3\
**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:52am UTC](https://community.exalate.com/t/customfields-formatting-bi-directionally-from-azure-devops-to-jira-cloud/5241/1 "2024-11-04T07:52:45Z")

</div>

_Originally asked by Mathieu Lepoutre on 21 June 2022 [(original question)](https://oldcommunity.exalate.com/questions/58491362)_

* * *

How to keep the formatting between customfields and comments bi-directionally from Azure Devops - Jira Cloud?

* * *

---

<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:52am UTC](https://community.exalate.com/t/customfields-formatting-bi-directionally-from-azure-devops-to-jira-cloud/5241/2 "2024-11-04T07:52:47Z")

</div>

_Answer by Mathieu Lepoutre on 21 June 2022_

Hi all

Please put this in respective connections.

**Jira Cloud Outgoing Sync**

```auto
replica."formattingtest" = nodeHelper.getHtmlField(issue, "customfield_10051")
replica."reproactual" = nodeHelper.getHtmlField(issue, "customfield_10053") 

replica.comments = nodeHelper.getHtmlComments(issue)

```

**Jira Cloud Incoming Sync**

```auto
issue."formattingtest" = nodeHelper.toMarkDownFromHtml(replica."formattingtest")
issue."Actual Results" = nodeHelper.toMarkDownFromHtml(replica."reproactual")

issue.comments = nodeHelper.toMarkDownComments(commentHelper.mergeComments(issue, replica))

```

**Azure Devops Outgoing Sync**

```auto
replica.comments = workItem.comments

replica."formattingtest" = workItem."Custom.formattingtest"
replica."reproactual" = workItem."Microsoft.VSTS.TCM.ReproSteps"

```

**Azure Devops Incoming Sync**

```auto
workItem.comments = commentHelper.mergeComments(workItem, replica)

workItem."Custom.formattingtest" = replica."formattingtest"
workItem."Microsoft.VSTS.TCM.ReproSteps" = replica."reproactual"

```

* * *

---

<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 6, 2024, 7:53am UTC](https://community.exalate.com/t/customfields-formatting-bi-directionally-from-azure-devops-to-jira-cloud/5241/3 "2024-11-06T07:53:23Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
