You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rtkit doesn't seems to accept multipart/form-data. I notice it specifically when I send special characters like *, & and etc. In our scenario those values are coming right out of a form that I am trying to pass to RT. However, custom fields that have special characters are not making it through to RT. RT developers are suggesting that the rtkit needs to be refactored. Any help will be appreciated.
Thank you for responding promptly. Here is the scenario and steps I have taken.
We have custom fields in RT with special characters, example: 'BB&T account number', 'What is the solution?
*'
Custom field values could also be Special Characters: 'ABC & XYZ'
So we create a dictionary object as:
{
"content": {
"Subject": " June 28 test test",
"CF.{Incident Title*}": "Test",
"CF.{Is this a major incident?}": "Yes",
"CF.{Severity}": "Red (High)",
"CF.{Issues*}": "High&Low",
}
}
Then I send the request over to RT as:
draft_ticket = resource.post(path='ticket/new', payload=content, ) #where resource has the uri, username, pwd)
RT returns a response as [[]]
RT creates a ticket however it does not populate the custom fields with special characters. RT however creates the tickets properly if I do not embed any special characters.
Hope this gives you a better idea. Looking forward to your response.
Activity
z4r commentedon Jun 28, 2017
Hi @rashed2014 ,
Can you send me an example of code?
rashed2014 commentedon Jun 29, 2017
Thank you for responding promptly. Here is the scenario and steps I have taken.
We have custom fields in RT with special characters, example: 'BB&T account number', 'What is the solution?
*'
Custom field values could also be Special Characters: 'ABC & XYZ'
So we create a dictionary object as:
{
"content": {
"Subject": " June 28 test test",
"CF.{Incident Title*}": "Test",
"CF.{Is this a major incident?}": "Yes",
"CF.{Severity}": "Red (High)",
"CF.{Issues*}": "High&Low",
}
}
Then I send the request over to RT as:
draft_ticket = resource.post(path='ticket/new', payload=content, ) #where resource has the uri, username, pwd)
RT returns a response as [[]]
RT creates a ticket however it does not populate the custom fields with special characters. RT however creates the tickets properly if I do not embed any special characters.
Hope this gives you a better idea. Looking forward to your response.
z4r commentedon Jun 29, 2017
Could you try with solution pointed in #37 ?