Originally asked by Mark Anderson on 18 February 2022 (original question)
Hi All
We have one was sync of Tasks from ADO to JIRA cloud
I need to set a Jira label to a constant literal string “ERP”
and the JIRA custom field “Portfolio” to the same value.
This string does not exist in the ADO, it will be hard-coded in the sync config.
My outgoing sync in ADO has these:
replica.labels = nodeHelper.getLabel(“ERP”)
replica.customFields.“Portfolio” = “ERP”
Also tried replica.labels = “ERP”
can anyone point me in the right direction
Comments:
Mark Anderson commented on 18 February 2022
I got it working, but not sure what the custom field assignment does
issue.labels += nodeHelper.getLabel(“ERP”) – this worked
issue.customFields.“Portfolio”.value = replica.customFields.“xyz”?.value ?: “ERP” -– i believe this says if the incoming custom field contains "xyz’ use it, if not use “ERP”
There is no incoming custom field, I just want equivalent of
issue.customFields.“Portfolio”.value = “ERP”