String currentUser = ((WorkflowContext) transientVars.get("context")).getCaller(); commmgr = (CommentManager) ComponentManager.getComponentInstanceOfType(CommentManager.class) commmgr.create(issue, currentUser, "comment contain special charactes", true) issue.store()
I have the above to create a comment in an issue after a transition.
The comment s text contain special characters like ñ or ó, but then in Jira they are displayed wrong. But if I typed them in jira they look OK.
What is the correct way to pass special characters in this case?
Thanks in advance,
You may need to try representing the characters in a different way. Take a look at these for some examples:
You should take care that the encoding of the script file while editing is the same as the one used by JIRA and the underlying server. In our case it's all UTF-8. If you try the script from the console the comment should be added with the characters looking ok, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.