Forums

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

Automation script, add a status in the description field, wiki markup language

olivier_roset_e
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!
July 25, 2024

Hi,

 

I want to add a status in the description field of an issue  with an automation script.

Can I use the same syntax as in Confluence to add the status ? If no, what is the good syntax in Jira Cloud ? 

Confluence macro : {status:colour=Green|title=On track|subtle=true}

What is the similar macro in Jira cloud ? 

 

2 answers

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.
July 25, 2024

Hi @olivier_roset_e -- Welcome to the Atlassian Community!

The status macro for Jira's Description field appears to get broken / bent as soon as the field is edited by an automation rule.  (I hypothesize there is some additional data which is lost when the field changes.  It might be possible to preserve it if the Atlassian Document Format, ADF, is used instead of markup text...although I have not tried that.)

You may enter what shows for the "status macro", like this for green, but it no longer looks like the one in Jira or Confluence after the edit:

{color:#36B37E}*[ ON TRACK ]*{color}

 

There is a similar, information panel which shows a larger indicator in the Description field:

{panel:bgColor=#deebff} here is the information panel {panel}
{panel:bgColor=#e3fcef} here is the success panel{panel}
{panel:bgColor=#fffae6} here is the warning panel {panel}
{panel:bgColor=#ffebe6} here is the error panel {panel}

The syntax is similar, and requires experimentation to discover.  These macros for the Jira issue Description fields seem to use specific colors to be detected as information indicators.

Perhaps try a few with some test issues to learn what will help.

 

Kind regards,
Bill

0 votes
Trudy Claspill
Community Champion
July 25, 2024

Hello @olivier_roset_e 

Welcome to the Atlassian community.

I used the UI to add a status lozenge in the Description field.

Screenshot 2024-07-25 at 4.09.36 PM.png

I then used the guidance here to print out all the fields in the issue, and looked for the Description field. This was the content I found.

 

{color:#36B37E}*[ STATUS ]*{color} 

 

Suggest an answer

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

Atlassian Community Events