Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
I sync multiple ticket from Jira Server to Jira Cloud with a Custom Field Checkboxes. However, the ticket that I sync to Jira Cloud did not showed the checkboxes options that I selected from Jira Server. I'm not familiar with scripting. Would you be able to help me with the correct scripts or syntax?
Example:
Exalate Sync
Jira Server Ticket # IT-300
Type of Services: Network, Infrastructure, Application
Result
Jira Cloud Ticket # IT-30
Types of Services: None
Jira Server Custom Field Checkboxes:
Checkbox Custom Field = Type of Services
Options:
Helpdesk
Application
Network
Infrastructure
Cloud
Scripts:
Jira Server Source (Outgoing)
replica.customFields."Types of Services" = issue.customFields."Types of Services"
Jira Cloud Destination
Incoming
def checkboxCollection = replica.customFields."Types of Services".
value?.
collect{
a->
nodeHelper.getOption (issue, "Types of Services", a.value)
}
issue.customFields."Types of Services".value = checkboxCollection
Hi Gilbert,
This script is just fine, what you are doing on the Jira Incoming script is to collect all values of the remote checkbox and find the corresponding value, however it will ignore in case the value is not found. Are the values exactly the same on both sides? If not, you might need to add a mapping or an additional condition.
Kind regards,
Ariel
Hi Ariel,
The value on both side is the same (identical).
In which part of the scripts I will put the value. Would you be able to provide or add in the scripts I provided? Example of the value are the following:
Helpdesk
Network
Cloud
Infrastructure
Application
HEy Gilbert Humarang
Do you have the checkbox options on both ends?