Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to replace HTML tags in description field?

Hi, i try to create a manual automation rule which can to replace(or delete and save only text in desc. field) HTML tags (<div>; </div>; <br />) with empty value in description field.

The fact is that there is a third-party service through which tasks for Jira are created and in the Description field, customers often highlight something with color or something related to HTML. There is no official solution to this problem, so I try to get out through the automation rules.

Can anyone suggest how to implement this?

2 answers

2 accepted

1 vote
Answer accepted


Well, only rest api third party solution I see :( 

Hi @Andrey Rudnev 

Yes, what @Gonchik Tsymzhitov suggests:

Although you could probably write a regular expression to remove most of the markup, the edge-cases would probably mess up your description field.

If you can, I suggest investigating if the source service can send plain text.  The next option is the already provided suggestion to look for another REST API to strip off the HTML tags...although that is going to add time to rule execution (up to several seconds).

Kind regards,

@Gonchik Tsymzhitov  @Bill Sheboy 

Thanks a lot for your answers!

Like Bill Sheboy likes this
0 votes
Answer accepted

@Gonchik Tsymzhitov @Bill Sheboy 

I found a way to work with HTML tags through an automation rule. It is not ideal and for each specific case, most likely, you will have to either supplement the existing rule, or create a new one. But in my case, I have specific text and specific tags, so this method worked perfectly.


I am just using the function to replace a specific tag with an empty value.


So, by analogy with any other tags or even entire HTML constructions.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

114 views 1 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you