How can Jira filter present Jira issues URL with the macro format?

Rony Len
Contributor
January 8, 2020

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

3 answers

0 votes
Rony Len
Contributor
January 13, 2020

I understand, not the solution I was hoping for

0 votes
Mike Bowen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 13, 2020

Hi @Rony Len 

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

The result on the page you see the following: 

Jira macro 1.png

-Mike

0 votes
Mike Bowen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2020

Hi @Rony Len 

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

Rony Len
Contributor
January 8, 2020

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.

Mike Bowen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2020

Hi @Rony Len 

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

Rony Len
Contributor
January 12, 2020

HI @Mike Bowen 

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

Mike Bowen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 13, 2020

Hi @Rony Len 

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

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

-Mike

Rony Len
Contributor
January 13, 2020

Thank you for that explanation @Mike Bowen 

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

PRM capture.PNGand not to be displayed as URL.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events