How to modify JIRA macro

DmitryB August 27, 2015

Hello,

I'm using JIRA macro to share issues from JIRA in my confluence. We use agile in JIRA and it's critical for me to share the name of the Epic for the issue. Agile uses field "Epic Link" when you add a user story to epic.

When I add "Epic Link" in display options of JIRA macro, confluence renders it like this: "BABY-297"

I've added this field to "Edit screen" in JIRA. When I edit my issue I see value like this: "FR1.1 Connected users"

Problem: Confluence renders the key of the epic. I need to get the name of liked epic.

I suppose that JIRA makes some extra work for this field (probably it extracts Epic name when renders this field).

I've got the plugin which is used by confluence to render this macro. Guys from Atlassian left source code in JAR file. It looks pretty simple and clear, should not be hard to modify.

Question: Does anyone know how can I learn JIRA macro to make the same trick like JIRA does? To get the name of the epic by it's key?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Mark Montminy March 28, 2016

We did something similar by adding a Scripted Field with the Script Runner plugin.

We added a field called "Epic Name / Link" which displays the Epic name if the reported on issue is an Epic, or the Epic name of the issue that the issue is linked with.

We add the Epic Name / Link field to our JIRA macro in Confluence, and we always get the Epic name that way.

TAGS
AUG Leaders

Atlassian Community Events