Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,562
Community Members
 
Community Events
165
Community Groups

How to embed a Jira issue/filter macro within Expand macro on confluence?

Hi,

I am trying to embed a Jira filter/issue macro within an Expand macro on a confluence page. Jira filter/issue macro is to display all the details like portfolioChildIssues of a feature and i want this to be collapsable/expandable. So trying to embed this within Expand macro but its not working. Jira issue is always ending outside the Expand macro. Is it like the latest version of Jira/Confluence not supporting this? Any help is appreciated.

Thanks

2 answers

2 accepted

0 votes
Answer accepted

Hi @Rajendar Akkala ,

Welcome to the community.

You need to add Jira filter/Issue macro inside the boundary of Expand macro. Attached a screenshot for your assistance.

image.png

Yes Rilwan, i am adding the Jira filter/issue macro inside the boundary of Expand macro but once the 'Insert' is clicked on Jira filter/issue macro, end result is ending outside the macro. 

Please share the screenshot from "View Source"

i.e. Open the page, click on 3 dots on the right top  --> Advanced Details --> View source

image.png

Source should be like as below
image.png

Right, but for me its showing as belowunnamed-4.png

0 votes
Answer accepted
Brant Schroeder Community Leader May 31, 2022

@Rajendar Akkala Welcome to the Atlassian community

I am able to have a Jira issue macro within a expand macro without issue.  Can you share a screenshot of the issue you are having? 

Thanks Brant for the reply. Here are the screenshots.

1) Inserted a Expand Macro

unnamed.png

2) In the above Expand macro i tried inserting another macro using /Jira or the + (Insert) symbol at the top and used the below Jira issue macro

unnamed-2.png

3) After inserting the above macro, it is showing as below, i.e. Jira macro is ending up outside the Expand macro.

unnamed-3.png

 

Could be that I'm making some mistake somewhere. 

Thanks

Brant Schroeder Community Leader Jun 01, 2022

@Rajendar Akkala what browser are you using?  

Brant, its microsoft Edge

Brant Schroeder Community Leader Jun 01, 2022

Can you use chrome or firefox and do you see the same behavior?

Tried in chrome and it's the same issue like in Edge browser. Noticed that Expand is working for the embedded Jira filter/issue macro, if the JQL for Jira filter is simple like "key=something'. When i use query using 'PortfolioChildIssuesof(something) its resulting in the output to be outside of expand macro boundary.

Brant Schroeder Community Leader Jun 01, 2022

Are you using a filter that contains the portfolio child function or are you typing it in?

Brant, here is what i am doing

created a Expand macro

Inside the Expand macro boundary, typed in /Jira and opened the Jira issue/filter macro. 

In the Jira issue/filter macro, typed in the PortfolioChildIssuesOf query to fetch all the stories tied to a feature.

As i click Insert for the above Jira issue/filter, the result for the PortfolioChildIssues is creating the result with the stories outside of Expand Macro.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

786 views 5 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you