JIRA Issue/Filter show only one field from a single JIRA issue?

Erik Kramer November 28, 2016

To the best of my knowledge, I can only  use the JIRA Issue/Filter macro in confluence to provide a link to a JIRA item or show a table with search results (and select the fields). For my application I would like to show a single field from a single selected JIRA item and NOT show it in tabular form. For example, I would like to show the due date for a JIRA issue in a Confluence table.

Any clues? Any third party macros?

4 answers

1 vote
Paul Biagio May 10, 2017

I quickly hacked together some JS to solve this issue for me and turned it into a user macro:

<script>
AJS.toInit(function(){
 setTimeout(function(){    
  AJS.$(".jira-table").each( function() {
   if (AJS.$(this).find( "td" ).length == 1) {
    var text = AJS.$(this).find(AJS.$("td.jira-macro-table-underline-pdfexport")).text();
    AJS.$(this).html(text);
   }
  });
 }, 500); 
});
</script>
0 votes
Sonal Keyal April 16, 2020

Dirty hack, I used CSS to remove the other columns from the page.

0 votes
Erik Kramer November 29, 2016

Thanks Steven. I'll give it a try.

0 votes
Steven F Behnke
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.
November 28, 2016

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events