How to embed a Jira issue/filter macro within Expand macro on confluence?
Asked by Rajendar Akkala:

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


Answers:
author: Rilwan Ahmed
body: Hi [@Rajendar Akkala](/t5/user/viewprofilepage/user-id/4953705) ,

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](https://community.atlassian.com/t5/image/serverpage/image-id/200074i5BDA4BB71A4CAFD9/image-dimensions/185x114?v=v2 "image.png")

comments: author: Rajendar Akkala
body: 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.


author: Rilwan Ahmed
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/200105iF162DF7AA047AF08/image-dimensions/208x134?v=v2 "image.png")  

**Source** should be like as below  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/200106iA06601943C5993E1/image-size/large?v=v2&px=999 "image.png")


author: Rajendar Akkala
body: Right, but for me its showing as below![unnamed-4.png](https://community.atlassian.com/t5/image/serverpage/image-id/200160iC36D010797C4024A/image-size/large?v=v2&px=999 "unnamed-4.png")


author: Brant Schroeder
body: [@Rajendar Akkala](/t5/user/viewprofilepage/user-id/4953705) 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?

comments: author: Rajendar Akkala
body: Thanks Brant for the reply. Here are the screenshots.

1) Inserted a Expand Macro

![unnamed.png](https://community.atlassian.com/t5/image/serverpage/image-id/200033i0CE0B6E2CE8BD9EC/image-dimensions/353x36?v=v2 "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](https://community.atlassian.com/t5/image/serverpage/image-id/200034i1BB90A3F40F40F8D/image-dimensions/348x246?v=v2 "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](https://community.atlassian.com/t5/image/serverpage/image-id/200035i76AF6BC15CD6BE68/image-dimensions/365x174?v=v2 "unnamed-3.png")

Could be that I'm making some mistake somewhere.

Thanks


author: Brant Schroeder
body: [@Rajendar Akkala](/t5/user/viewprofilepage/user-id/4953705) what browser are you using?


author: Rajendar Akkala
body: Brant, its microsoft Edge


author: Brant Schroeder
body: Can you use chrome or firefox and do you see the same behavior?


author: Rajendar Akkala
body: 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.


author: Brant Schroeder
body: Are you using a filter that contains the portfolio child function or are you typing it in?


author: Rajendar Akkala
body: 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.


author: biao_li
body: only support rich text


author: shannon_woodson
body: Im facing the same issue where upon clicking insert, the the Jira macro will be placed on the outside of the expand macro. Any advice would be greatly appreciated

comments: author: tom.l
body: Same for me. Very disturbing issues solution would be great.


author: Brant Schroeder
body: [@Roger Tabet](/t5/user/viewprofilepage/user-id/5007548) [@shannon_woodson](/t5/user/viewprofilepage/user-id/4843007) [@tom.l](/t5/user/viewprofilepage/user-id/5000110) Can you provide additional information about your issue? There are certain combinations, additional apps, etc. that cause this not to work. Are you embedding it in a table, do you have apps installed that you are using?


author: jpeeling13
body: I am also having the same problem, using Confluence Cloud. To be more specific though, I only see this happening when I have the expand macro inside of a table row. When the expand macro is outside of a table and just somewhere on the page, I can successfully add the jira filter (even advanced ones that return multiple issues) inside the boundaries of the expand macro.


author: Roger Tabet
body: Facing same problem


Tags: cloud

confluence-cloud