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 ?
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
Hello @olivier_roset_e
Welcome to the Atlassian community.
I used the UI to add a status lozenge in the Description field.
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}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.