How can Jira filter present Jira issues URL with the macro format?
Asked by Rony Len:

Hi,

I am trying to display a table in confluence that is based on a Jira filter.

I am trying to create a situation where I am adding an issue URL and would like that confluence will display that URL in the nice macro format macro (the same as pasting URL directly in confluence and it is turned to that macro).

How can I do that?

Thanks in advance


Answers:
author: Rony Len
body: I understand, not the solution I was hoping for


author: Mike Bowen
body: Hi [@Rony Len](/t5/user/viewprofilepage/user-id/3511009)

Okay, I know what you mean, and I would say what you want is not possible.

However you could copy a blank **JIRA macro** into every row of your table and simple paste in the RBO-3580 or RBO-3581 into the filter space and press enter. When you see the Key and Summary click on Insert. The result will be what you are showing. This works for both classic and New Gen pages.

But it is **not** going to create the **JIRA Macro automatically** if you paste in a text URL.

![Jira Macro 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/78739i665DBE4200C72195/image-size/large?v=v2&px=999 "Jira Macro 2.png")

The result on the page you see the following:

![Jira macro 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/78740i9BC458EA0A3563C6/image-size/large?v=v2&px=999 "Jira macro 1.png")

-Mike


author: Mike Bowen
body: Hi [@Rony Len](/t5/user/viewprofilepage/user-id/3511009)

Have you tried using the **Jira Issue Filter** Macro? That is what it does. Shows a table of issues based on a filter you have saved.

OR you can simply type in the Issue Key XXXX-9999 and have it automatically link (*without you adding the URL to the actual issue*). To set this up in Confluence do the following:

1. Click **Space Settings**
2. Click the tab **Integrations**
3. Click **Add Link** (right side of the page) and enter in the key of your Jira project.

-Mike

comments: author: Rony Len
body: I have a text field that in the Jira issue I am pasting other issues' URLs.

when I use that text field in Jira issue/filter in confluence the pasted URLs in the text field content does not change to that macro format.

I would like to have the results of that Jira issue/filter transformed to the macro format.


author: Mike Bowen
body: Hi [@Rony Len](/t5/user/viewprofilepage/user-id/3511009)

Can you show me what you are doing through a screenshot?


author: Rony Len
body: HI [@Mike Bowen](/t5/user/viewprofilepage/user-id/1798821)

Enclosed is a sample.

scroll all the way to the right - under column scope.

scope is a text field in which I am pasting URLs of Jira tickets.

when adding this field to a table as such in confluence I would like it to appear as the macro with updating status and the subject of the ticket (and not as URL).

![PRM capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/78618iAC1D99043CD07572/image-size/large?v=v2&px=999 "PRM capture.PNG")


author: Mike Bowen
body: Hi [@Rony Len](/t5/user/viewprofilepage/user-id/3511009)

Okay, I think I understand, but apologies if this answer is not it.

I was able to replicate what you have done using the following steps. I am assuming you are a Jira Administrator as you will need to be in order to achieve these results.

1. Click **Jira Settings, Issues, Custom Fields**.
2. Top right click **Add Custom Field**.
3. Select a field type - I picked **URL Field** (*Allow the user to input a single URL*). Click Next.
4. **Associate the URL Field with some screens** by checking the Screen boxes. Click Update at the bottom.
5. Still in Custom Fields, search for your URL Field and click on the 3 dots and select Configure.
6. Under default configuration - Applicable contexts for - click Edit Configuration.
7. Under Choose application issue types, you can either select the Issue Type you want to link your URL Field to or select Any Issue Type.
8. Likewise under Applicable Context choose between Global context (all projects) or pick the projects.
9. Click Modify if you are making changes.
10. Go to Jira Service Desk and edit an existing ticket.
11. Click Configure Fields and add URL Field to your screen view (it might already be there).
12. Copy the URL at the top of the page and paste into the URL field.

![Jira ticket.png](https://community.atlassian.com/t5/image/serverpage/image-id/78684i3FDDA304A94AB3F3/image-size/large?v=v2&px=999 "Jira ticket.png")

**In Confluence**

1. Insert **Jira/Issue Filter** to the page.
2. Select your saved filter.
3. Click on **Display Options** at the bottom
4. Under Columns to display add your custom field 'URL Field'
5. Click **Insert**.
6. **Publish** the page.
7. Jira Filter is displayed with your Custom Field.

![Jira Issue Filter with Custom Field URL Field.png](https://community.atlassian.com/t5/image/serverpage/image-id/78683iE995F002272C5848/image-size/large?v=v2&px=999 "Jira Issue Filter with Custom Field URL Field.png")

-Mike


author: Rony Len
body: Thank you for that explanation [@Mike Bowen](/t5/user/viewprofilepage/user-id/1798821)

I wanted the text field or URL field to display as the macro - I meant in this format:

![PRM capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/78703i9F7C50F642E448F3/image-dimensions/310x22?v=v2 "PRM capture.PNG")and not to be displayed as URL.


Tags: cloud

confluence-cloud