Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,142
Community Members
 
Community Events
176
Community Groups

How do I use Automation to edit Jira Issue description and use Emoji's and Info Panels etc

I've created a very useful Story description field layout for our Project that I'd like to use as a template across every new Story that is created. The plan was to create an automation that edited the Description field of a Story when it was created.

The problem is that when I try to paste the Story description field template into the automation process it only copies the text and none of the emoji's or info panels.

 Description.png

2022-07-25 16_56_09-Automation - Jira.png

I've tried pasting the Story into an external site justpaste.it to grab the HTML and then paste this into the automation process but this just displays HTML in the description when the Story is created.

 

2022-07-25 16_57_36-[PRJ-979] Test of automation - Jira.png

Is it possible to use Emoji's and Info panels in the automation process?

How do I go about adding this to the automation process?

2 answers

1 vote
Connor Rising Star Jul 25, 2022

Hi Alistair, I'm not sure if emojis can be added via automation but maybe some of these similar questions can help you figure out if it's possible. 

As for panels, I have a few automations that add comments to issues with panels added to the comments. This is done through advanced format wiki markup. Modify this URL to include your site name and it should take you to the wiki markup help page. https://SITENAME.atlassian.net/secure/WikiRendererHelpAction.jspa?section=advanced

Here's an example of a panel that uses the same color as the "Info" panel macro in Confluence. 

{panel:bgColor=#DEEBFF}
COMMENT BODY
{panel}

When I created this automation I spent time to grab the RGB values of all the Confluence panel macros and cross referenced them against Atlassian's design documentation: https://atlassian.design/foundations/color. To save you the trouble I'll list them below.

  • Info
    • Name: B50 - Pixie Dust
    • Hex: #DEEBFF
    • RGB: 222, 235, 255
  • Note
    • Name: P50 - Lavender Secret
    • Hex: #EAE6FF
    • RGB: 234, 230, 255
  • Success
    • Name: G50 - The Smell
    • Hex: #E3FCEF
    • RGB: 227, 252, 239
  • Warning
    • Name: Y50 - James Blonde
    • Hex: #FFFAE6
    • RGB: 255, 250, 230
  • Error
    • Name: R50 - Rosie
    • Hex: #FFEBE6
    • RGB: 255, 235, 230

Hey Alistair, I figured out how to add emojis after some painful testing.

Recipe:

 

  1. Firstly you need to find out the low level character codes (surrogates), luckily some sites list them.
  2. So once we have the emoji code in Java e.g. "\uD83D\uDE80" for the rocket emoji we can simply insert it in the.. no wait, not so fast.
  3. We need to create a string and Jira doesn't let us do that in the templates directly. The easiest way is to use the Create Variable step with the name "rocket" and get an empty slice of an existing string, that way it can be reused:
    {{issue.summary.left(0).concat("\ud83d\ude80")}}
    image.png
  4. Finally in the template we can insert our emoji:
    {{rocket}}

 

Result:

image.png

 

P.S. If someone can find a less painful way to do this, I'm all ears.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS

Atlassian Community Events