Using youtrack as help desk, need to remove html from replies
Hello,
We are using youtrack to manage our helpdesk, sometimes we get a reply that looks blank, if I click edit I can see the reply but I need to delete all the html tags around it to get it to display correctly, is there a way to do this automatically?
Dan
We are using youtrack to manage our helpdesk, sometimes we get a reply that looks blank, if I click edit I can see the reply but I need to delete all the html tags around it to get it to display correctly, is there a way to do this automatically?
Dan
Please sign in to leave a comment.
Could you please provide me with the screenshot of such threads? Do you know what email clients were used?
Do you experience this on your InCloud or Stand-alone YouTrack? If it's Stand-alone, what email server is configured on your instance?
Thank you.
I have noticed that some are from mobile devices e.g. Sent from my Sony Experia. other's like the one I just recieved don't - see screenshots.
We have a Standalone youtrack, we are using exchange 2010.
Dan
when comments.added.isNotEmpty {
var myComment = comments.added.first;
......
var x = myComment.text.substringBetween("<META HTTP-EQUIV", "\">");
x = "<META HTTP-EQUIV" + x + "\">";
if (x != null || x != "") {
myComment.text = myComment.text.replace(x, "");
}
Thanks for details. We'll investigate mobile clients behaviour.
Vitaliy,
Many thanks for sharing workaround!
Do I just add the the custom workflow seperately or do I have to add it to notifyUnregisteredUsers
Dan
This can be added to notifyUnregisteredUsers workflow.
Thank you.
You can add it to notifyUnregisteredUsers, as I did.
Do not forget to test changes!
I will have to have a look later - really busy atm - we have had 10 times more users than we had planned for.
I have some more helpdesk related questions, not sure if I'm meant to start a new thread or shall I continue this one?
Dan
It's better to proceed in new thread, as it's a new topic.
Thank you.
Do I just add this to the end of the notifyUnregisteredUsers workflow or does it need to go at a certain stage?
When I look at workflows in youtrack the format seems straightforward but when I load it in the workflow editor everything is in 1 long string?
Dan
rule fix meta http
when becomesReported() {
var x = issue.description.substringBetween("<META HTTP-EQUIV", "\">");
if (x != null || x != "") {
x = "<META HTTP-EQUIV" + x + "\">";
issue.description = issue.description.replace(x, "");
}
}
Do I need to add this within the existing rule or can I just add it as an additional rule within the workflow?
The rule should be added as self rule within the workflow.
Thank you.
Yes, it's Stateless.
x = "<META HTTP-EQUIV" + x + "\">";
Also I'm not sure how to enter "||"