I would like to query the number of issues meeting certain criteria in JIRA and display the result simply as a number amongst text.
E.g. I have a custom issuetype in Jira called 'TechnicalQueries'. I would like to be able to display the following in Confluence. 'There are currently 34 open Technical Queries'.
I have seen the count jira issue macro but is appends the word issue to the end, Is there a better more flexible way to add in line queries?
Hello @ernest snaith,
If you don't mind a little hack, you could do this.
#else
<a class="issue-link" href="$clickableUrl">
#if($count == "1")
$i18n.getText("$count")
#else
$i18n.getText("$count")
#end
</a>
#end
Do try, and let me know how it goes, and make sure to create the back of the file above, in case we need to roll back.
Do note that upgrading Confluence would break this, and we will have to re do it for the new confluence-jira-plugin-X.X.X.jar file that comes with the upgraded Confluence.
Hope this helps, and do let me know if you have any questions.
Cheers,
Sattesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.