How to format styled description in @EventEmitter

imamudin naseem April 16, 2018

I am creating a Jira plugin in which I am listening to issue events using com.atlassian.event.api.EventEmiiter, and then posting it to some other app running outside JIRA environment.

Whenever EventEmitter captures an event I get changed attributes from ChangeItemBeans. ChangeItemBeans give fieldType, toString, fromString etc..

I am through a scenario when user is edits  description and adds styles to the text, toString contains some text that is difficult to read. For instance if user updated description to "Sample Description" and gives red color to text. The value of toString received is "{color:#FF0000}Sample Description {color}".

Is there a way to get the plain text out of it?

0 answers

Suggest an answer

Log in or Sign up to answer