Why, when I try to add my own HTML, it added more styles CSS?

For example:

 

I add:

<p>test text</p>

 

but eventually comes to the mailbox:

<p style="margin: 10px 0 0 0">test text</p>

2 answers

0 votes
Peter Bengov Community Champion Dec 01, 2014

Maybe there are styles you inherit from JIRA / Mail Handlers's templates.

You could try to override the styles with some !Important calls. Didn't test this myself, so not sure it will work.

I didn't find additional styles in JIRA templates

0 votes
Chris Fuller Atlassian Team Dec 01, 2014

The short answer is "Microsoft Outlook".

Not all mail clients support the use of Cascading Style Sheets.  Atlassian products use a library called BotoCSS (https://bitbucket.org/mryall/botocss) to inline the styles from .css into the HTML elements when rendering an email to make sure that even broken mail clients will be able to render them as closely as possible to how a web browser would, even the broken old ones like Outlook that don't handle .css correctly.

I can't find Botocss styles in my templates(

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

454 views 7 5
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you