Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Limit of issues on Jira issues macro

Hi,
I am developing a blueprint that shows info from Jira macro, when i search information about this topic i Found this code in atlassian's page.
But with this code, the limit of issues displayed is automatically set to 20.

Is there a way to increase this limit using code?

<ac:structured-macro ac:name="jiraissues">
  <ac:parameter ac:name="anonymous">true</ac:parameter>
  <ac:parameter ac:name="columns">type;key;summary</ac:parameter>
  <ac:parameter ac:name="url">
    <ri:url ri:value="http://jira.atlassian.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+CONF+AND+%28summary+%7E+jiraissues+OR+description+%7E+jiraissues+OR+comment+%7E+jiraissues%29&amp;tempMax=10"/>
  </ac:parameter>
</ac:structured-macro>

 

1 answer

1 accepted

0 votes
Answer accepted
Kseniia Trushnikova
Community Champion
July 18, 2023

Hi @Garcia Castillo, Santiago (SI IT ITE L&A),

Sure. Try to add this line (replace 100 with the limit you want) inside <ac:structured-macro>...</ac:structured-macro>:

<ac:parameter ac:name="maximumIssues">100</ac:parameter>

Hi @Kseniia Trushnikova

First of all, thanks for helping!!

I tried copying that line inside the macro but didn't work

<ac:structured-macro ac:name="jiraissues">
<ac:parameter ac:name="anonymous">true</ac:parameter>
<ac:parameter ac:name="columns">type;key;summary</ac:parameter>
<ac:parameter ac:name="maximumIssues">100</ac:parameter>
<ac:parameter ac:name="url">
<ri:url ri:value="http://localhost:8080/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+PRUEB&amp;tempMax=50"/>
</ac:parameter>
</ac:structured-macro>

Is there something I could be doing wrong? 

Kseniia Trushnikova
Community Champion
July 19, 2023

@Garcia Castillo, Santiago (SI IT ITE L&A), can you please add a screenshot of the error?

Do your Confluence and Jira have application links?

I am not getting an error, the page loads correctly the macro but with the issue limit to 20 

Kseniia Trushnikova
Community Champion
July 19, 2023

@Garcia Castillo, Santiago (SI IT ITE L&A), got it. For some reasons, it works for me...

Can you open your page in source editor and check the line that refers to the issue limit?

Confluence - Open in source editor.png

Hi! 

I used the macro with the server-id instead of the url and it worked!!

Thanks for all!! 

One question @Kseniia Trushnikova  do you know if there is a Documentation page with all this technical information(params, classes...)

Kseniia Trushnikova
Community Champion
July 19, 2023

@Garcia Castillo, Santiago (SI IT ITE L&A), that's great, so glad it works!

Maybe these docs can help: https://developer.atlassian.com/server/

I will take a look, thanks for all!!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events