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

Jira issue macro priority name

Hanief Mumtazul Anwar March 30, 2021

Hi, is there a possible way to show priority names in table column of Jira issue macro, instead of just showing the icon?

1 answer

3 votes
Katerina Kovriga {Stiltsoft}
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.
March 30, 2021

Hi @Hanief Mumtazul Anwar ,

There is such workaround with the help of the Table Filter and Charts for Confluence app and its Table Transformer macro.

Wrap your Jira Issues into the Table Transformer macro body and use a custom SQL preset to create a new column with conditional statuses:

Tue 2-1.png

Tue 2-2.png

SELECT *,
CASE
WHEN T1.'P' LIKE "Major"
THEN FORMATWIKI("{status:colour=Red|title=High}")
ELSE FORMATWIKI("{status:colour=Green|title=Low}")
END AS 'Priority New'
FROM T1

Here I used only one priority type cause it's an example but you should list all of them and choose any lozenge colors and names as you need.

Tue 2-3.png

If you don't need the old 'P' column and/or want to change the columns' order, just list the required column names after the SELECT instead of the *: SELECT T1.'Key', T1.'Created', etc.

Hope this helps your case.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events