Forums

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

Using Status Lozenge In Jira Automation Comment (or other text formatting)

Nicholas Schneider
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2021

Inquiring about whether it's possible to use some form of formatting to provide a status lozenge via an automation comment on an issue in Jira. The editor for comments in Jira's automations only provides a plaintext interface.

Example:  image.png

The text formatting documentation does not seem to provide a method to do this. Old legacy documentation of a status macro exists, but does not appear to work in the new editor, which is to be expected given its legacy. Is there some method of doing this in the new editor?

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Rahul Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 14, 2021

Hi Nicholas,

Thanks for using Atlassian Community!

We cannot have the status lozenge, as of now, using the automation rules. Capability to enable the rich text compatibility for A4J is being tracked under the below feature requests :

 

Thanks,

Rahul

1 vote
Bill Sheboy
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.
August 6, 2021

Hi @Nicholas Schneider -- Welcome to the Atlassian Community!

I believe that is possible, and you will need to experiment a bit to make it work.

I recently created a monthly calendar in an issue description using such formatting with an automation rule.  The way I found the correct formatting, panel/macro codes, and logic to make it work was:

  • create a test issue
  • edit the description and/or comment to contain the formatting you want manually, saving your changes
  • using advanced issue search to find your issue, export the fields to CSV
  • open the results and examine the contents to find your formatting
  • paste that where you need it in your rule, and edit accordingly

Best regards,
Bill

Nicholas Schneider
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2021

Hi @Bill Sheboy -- thanks for the suggestion!

After doing so, I found this to be the internal representation of the status in the CSV:

{color:#00B8D9}*[ TEST STATUS ]*{color}

When passed exactly like that from the Jira automation comment, instead of showing up as a status it simply shows up as the bold text "[ TEST STATUS ]" with a color.

How it should show (from the test issue): image.png

How it shows when attempting to use the plaintext format: image.png

I've also tested several variants of the formatting to see if any of them would prompt it to use a status:

{color:#00B8D9}*[ TEST STATUS ]*{color}
{color:#00B8D9}[ TEST STATUS ]{color}
{color:#00B8D9}*[TEST STATUS]*{color}
{color:#00B8D9}[TEST STATUS]{color}
[ TEST STATUS ]
*[ TEST STATUS ]*
[TEST STATUS]
*[TEST STATUS]*

Each of these again resulted in some odd output:

image.png

Bill Sheboy
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.
August 11, 2021

Hi @Nicholas Schneider 

Thanks, and short version answer:

  • I believe you have uncovered a defect/documentation error
  • If you are are on a paid license for Jira, I recommend you ask your site admin to submit a defect here and post what you learn from customer support: https://support.atlassian.com/contact/#/

Longer answer:

I was able to reproduce your results, and when I copy/paste (or directly enter) a status macro in a comment it works as expected with the lozenge.

I also tried to get the information using the REST API (rather than the export) and got the same results.

The documentation for the text formatting does not show the status macro feature: https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all

So my hypotheses are:

  1. there is some undocumented markup/setting, which cannot be exported and so we cannot use it manually in a rule as it is unknown
  2. the act of exporting (or exporting to the REST API) remaps the markup into something else, not matching the values needed for the status indicator macro
Like Nicholas Schneider likes this

Suggest an answer

Log in or Sign up to answer