- David Rodriguez
- Feb 12, 2020
- connector-cloud-jira
- Comment
2 answers
- 210
Hi David,
The problem here is with that line you added you are only sending the custom field information, now you need to add logic in the Incoming Sync (destination side - Jira Cloud) to actually set that field into a custom field on that destination issue.
You have this:
Outgoing sync (source side - Jira Server):
replica.customFields."Partner Name" = issue.customFields."Partner Name”
You are missing this:
Incoming sync (destination side - Jira Cloud):
issue.customFields."Partner Name".value = replica.customFields."Partner Name"?.value
This is assuming that the field is also called "Partner Name" on the Cloud side and that the field if of type Text
Thanks,
André
- David Rodriguez
I tried this and update the ticket. But is not syncing the field. Probably some issue with the field name. So how can i test this but the field ID.
For example this is the ID of the field on the cloud: 10033 and this is the field's ID on the server: 10403.
How can i apply it here:
issue.customFields."Partner Name".value = replica.customFields."Partner Name"?.value
- André Leroy-Beaulieu Castro
Outgoing (Jira Server):
replica.customFields."Partner Name" = issue.customFields."10403"
Incoming (Jira Cloud):
issue.customFields."10033".value = replica.customFields."Partner Name"?.value
Let me know!
Thanks,
André
CommentAdd your comment... - 10-1
One question about this, There are some old fields we want to sync since they weren't created after the first synchronisation. How can i sync this fields?
- André Leroy-Beaulieu Castro
Hi David,
You can just add the logic to sync those fields to the sync rules of the connection and then if you update the tickets (change the summary, add a comment, for example), this will trigger a new sync and will sync those fields over.
Thanks,
André
CommentAdd your comment...