Our JIRA sync fails when production put all sorts of complicated stuff in the text field.
Below is what people will put in the notes field
While working ong Gotham WMA cart, restoring offline assets to get included in the Gotahm archive, I noticed that it is grabbing Gotham Archive tapes to restore. This should not have happened in the first place as we have intentionally excluded assets already in Gotham ArchivesHers are some detailsWMA JOB:http://ark.al.com.au/current/Webark.html#page=HydraTaskPage&hlmversion=4&taskId=20190220008747&targetEntityId=20190220008747&targetEntityType=task&entityType=actionLog&sort-desc-1=id&start.index=0From the Hydra log it mentioned of a separate log/film/rib01/dops/gotham/wmX/wma_log.20190220131617-jeffreyt.csvI grep out asset vid 1642552783 from the wma_log above$ grep 1642552783 /film/rib01/dops/gotham/wmX/wma_log.20190220131617-jeffreyt.csv1642552783;1;1.881490775E9;1614180264;1610835302;Version correctly added to cart;When I run the old ./version command, it is showing it is already in GOTHAM_ARCHIVE--- t_versionlocation records ------------------------------------------------------------------------------------------1743562270 | 1642552783 | 6623 | alfx | 1629204022 | 2019-02-21 10:29:28.391+11 | /jobs/alfx | 1654212556 | 1642552783 | 13138 | GOTHAM_ARCHIVE | 1629204022 | 2017-01-23 10:41:27.372+11 | | 1651183977 | 1642552783 | 13137 | GOTHAM | 1629204022 | 2016-12-02 05:37:27.246+11 | | There probably is some minor bug in the logic of the WMA job or "edge cases"
I am pretty sure it fails due to the JSON being created loses it’s mind with the “ “ and / and all the like through there.
This is the set JSON command I use;
{
"fields": {
"project":
{
"key": "Incident.Jira Project Key"
},
"summary": "Incident.Incident ID: Incident.Short Description
",
"description": "Incident.Description",
"customfield_10050" : "Specifics.Notes",
"customfield_10068" : "Incident.Customer Display Name",
"customfield_10059" : { "value": "Specifics.Department"},
"customfield_10056" : { "value": "Specifics.Production"},
"customfield_10053" : { "value": "Specifics.JiraProductionImpact"},
"customfield_10062" : { "value": "UserLocation"},
"issuetype": {
"name": "IssueType"
}
}
}
The Description and the 10050 custom field are where it tanks out. Do you know if I should be wrapping that up in something more robust to allow any sort of text in there so it just picks it up as is and pushes it to JIRA? I just need to blanket take whatever is entered in the field and send to JIRA.
Is there something I need to put around the variables.
Thanks