Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Chnage text color resulted from a Jira Smart Value?

Baylor Peak
Contributor
February 9, 2022

Hello all,

I have an Automation set up to send an email to certain people when an item is moved to "Testing".

My current email body:

If further work or re-work is needed, please add the appropriate comments to that regard and assign it back to {{assignee.displayName}}

Was looking through all the Smart Value documentation bu I did not see anything to access this property - is this possible please?

1 answer

1 accepted

2 votes
Answer accepted
Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2022

Hi @Baylor Peak 

 

Since the email uses HTML format, I wonder if we could wrap the Smart Value in HTML to achieve what you are looking for:

<p style="color:red;">{{assignee.displayName}}</p>

Thanks,

Tim

Baylor Peak
Contributor
February 9, 2022

Worked like a charm!

Thank you sir :)

Like Tim Perrault likes this
Baylor Peak
Contributor
February 9, 2022

Well...spoke to soon...almost

This is what I am inputting into the content box:

If further work or re-work is needed, please add the appropriate comments to that regard and assign it back to<p style="color:green;">{{assignee.displayName}}</p>

The rendered result looks like this:

If further work or re-work is needed,
please add the appropriate comments to that regard
and assign it back to

Baylor Peak (This is in green though so that is good)

Is there a way I can not have the paragraph break so that it just appends Baylor Peak at the end of the sentence?

Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2022

Try wrapping all of the text together:

<p style="color:black">
If further work or re-work is needed, please add the appropriate comments to that regard and assign it back to
<span style="color:green;">{{assignee.displayName}}</span>
</p>
Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2022

You would use a div instead of a p tag.

Or you can use our app, Notification Assistant for Jira which allows you to customize email templates via the UI.

Like # people like this
Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2022

Thanks @Boris Berenberg - Atlas Authority and I use your app and can say it's wonderfully easy to use.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events