I want to get the amount of rows returned from a Jira query, just like the count() function that it is used in SQL.
Hi @Jose Ariel Laureano Ramirez
Running a JQL statement from the user interface will not show the count when it is above the limit. However if you call the REST API search method for your JQL the "total" field will show the count.
Based upon your other recent questions/posts, I wonder if this is this for an automation rule. If so, you may call the REST API from an automation rule using a web request to get the count. Here is a how-to for making such a call: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828
Best regards,
Bill
thanks @Nir Haimov but I would like to get it via a query so I can say for example: If result is >=100 then do this else do that. Did it make sense to you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jose Ariel Laureano Ramirez
Yes, it make sense, if you are running this JQL via external code, i thought you are asking it via Jira UI.
If you are running a JQL via the API: https://docs.atlassian.com/software/jira/docs/api/REST/8.14.1/#api/2/search
you can use the "total" entity, which tells you the count of records...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.