Has anyone succeeded to have a stable status synchronisation between Jira Data Center and Freshdesk? I have code that worked initially and then after a few synch operations it started sending me the error:
Request with URL /api/v2/tickets failed with response code:400 and response message:{“description”:“Validation failed”,“errors”:[{“field”:“status”,“message”:“It should be one of these values: ‘2,3,4,5,6,7,8,9,10,11,12,13,14,15’”,“code”:“invalid_value”}]}
I already have the status field setup in both incoming and outgoing sync code, any solution?
You’re trying to set a status in Freshdesk using a value that is not in the list of accepted numeric status IDs. Freshdesk/Freshservice use numeric codes (e.g., 2 = Open, 3 = Pending, etc.) to represent statuses and Exalate is likely passing a string name like "Open”.
You can use the Freshdesk API to list all your available ticket statuses.
GET /api/v2/ticket_fields
Afterwards we can make a mapping.
Can you share the values of these statusses and your current incoming sync code on FS, please?
Thank you for your response. I have already tried that, I found all the status numbers in Freshdesk and assigned them to the Jira statuses in a Key/Value mapping, but I still got this error: Illegal argument type class java.lang.Integer for setStatus
Previously I got support from one exalate support member and he assisted me with a code that worked while in the session, later the code stopped working and went back to the error I shared in the post. Here’s the code that worked initially:
So we can see if the Exalate processor returns an integer instead of a string.
You can place this above the initial entity.status line, Exalate will force an Error and print out the value. This way we can see the result. Please let me know this.