How to find JIRA JQL max 10 issues

Urmo Luts February 21, 2018

Hi

Is it possible to limit JIRA JQL find only random 10 or last 10 issues?

project = KP AND created >=  startOfDay("-24h") and status = "Resolved (SD)" 

Right now it find all issues what are created -24hours and status Resolved but i like to find only random 10 issues for NPS Survey

1 answer

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2018

Dear @Urmo Luts,

I don't no of any Jira feature in the UI but you can do:

  • use the filter gadget on dashboard an show only 10
  • or you use the REST API with parameter maxresults=10.

so long

Thomas

Urmo Luts February 28, 2018

Maybe it is to hard to tell but i think that is it possible that i create custom field "NPS algnumber" where i give every day at 00:01 value 1 (Automation JIRA i set every day same value = 1).

Then i create another custom field "NPS number" what get value from "NPS algnumber" field and with workflow transition i give value:

  1. The value of the field NPS number will be increased by 1 unit.

Then i was thinking that i change "NPS algnumber" from "NPS number" increase by 1 unit. It should be 2. But it wont write over it :(

My idea is that i make one field what counts form 1 to 10. When same day NPS survey have send out surveys no more will send out. But right now i dont have idea, how to really create it so it will work...

Any idea?

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2018

Dear @Urmo Luts,

nop - sorry - I am not familiar with "Automation for Jira". But if you manage to alter one field only for the latest 10 then you can adapt your JQL to this custom field.

So long

Thomas

Suggest an answer

Log in or Sign up to answer