Originally asked by Jillani Fazal on 19 June 2023 (original question)
I have couple of questions.
I was able to get the Brand solution working, I just had to adjust the last line of code as brand_id was a double for some reason.
replica."brand_id" = brand_id.toFloat().toInteger().toString()
Would it be possible to add firstSync to Zendesk outgoing? Would only like to send brand_id of the first sync.
I only want it outgoing on first sync to avoid a call to be made on every synchronization, though I can live with this if not possible.
----------------------------------------------
replica.addedAttachments.collect
{it.internal = true; it}
worked wonderfully, attachments are only added as internal notes in Zendesk, thanks.
However, attachments added as internal notes in Jira are still sent to Zendesk and added as internal notes in Zendesk. I tried to update Jira outgoing as follows as I have with comments, but it did not have any effect. How can I only send attachments added in internal notes from Jira to Zendesk?
replica.attachments = issue.attachments.findAll{!it.internal)
-------------------------------------------------
For the following line of code where “Contact reasons” is a custom drop-down field.
issue.customFields."Contact reasons".value = "account_closure"
How can we set value for custom drop-down fields in Zendesk?
I would appreciate if the following questions are addressed. Thank you!
(Asked on behalf of the client)