How do I get the number of bugs reported per month on Jira? - jira

I am new to Jira and am trying to find the number of bugs reported on Jira per month using JQL query.

In fact you could use the basic mode in Issues tab, to arrive at the report
Basic mode generates the JQL in the background with help of dropdowns and selections, Advanced lets you use the JQL
Requested JQL Query Below, for Month November
project = *YourprojectName* AND issuetype in (Bug, "Story bug") AND created >= 2018-11-01 AND created <= 2018-11-30

Related

How to show worklog in a weekly breakdown on a JIRA dashboard gadget?

For total worklog I use a Counter gadget summing time spent (and a simple filter specifying project, issuetype and labels (customfield).
Please advise, what filter and gadget should I use to see total worklog in a weekly breakdown?
You can try Sprint Burndown gadget.

JQL query to filter JIRAs based on the last commented date by a particular account / user

I am new to JIRA / JQL, and wanted help in knowing if the following is possible:
I want to filter JIRAs which have been commented on by a particular user (a bot account) in the past xx days
I want to filter JIRAs which have a particular regex in its comments in the past xx days
If the above cannot be done, I am open to suggestions as to how to achieve it using a combination of labels and description in the JIRA!
Sorry, but comments are stored within each Issue and you can't search for them globally using the native JQL query. You'd need to utilise the REST API to iterate through the Issues, extracting all the comments, then filtering the results.
Refer to this article in the Atlassian community Jira blog on the same topic and what third party tools can help work around the issue.

JQL: Find the latest closed sprint

How can I find the last closed sprint?I tried using
ORDER BY updatedDate DESC
but this returns all the closed sprints. I need only the latest one.
JIRA does not provide a JQL function out of the box that supports listing the issues in the last completed sprint. The best it offers is displaying the issues in a sprint by name, e.g.:
sprint = "<sprint name>"
You can find the documentation about the JQL support for the sprint field here.
If you use JIRA standalone, then there are a few add-ons that provide additional JQL functions. For example, Script Runner adds a function previousSprint that does what you want. Your JQL then looks like:
issueFunction in previousSprint("<board name>")
There is also a cloud version of this add-on, but it does not support the agile functions yet. To see what they do support, check this table.

retrieving maxResult in worklogs using jira JQL issue

I have a simple jql query that gives me all the issues and work logs. The worklogs however seem to cap at 20. How can I force it to retrieve all ? E.g
http://website/rest/api/2/search?jql=project in (Project) and issueFunction in workLogged("after 2015/10/12 before 2015/10/17") &startAt=0&maxResults=1000&fields=worklog
How can I force that the max results for work log is for example 100 instead of 20. I am unable to find any references on how to change the max when it is inner node.
At the moment you cannot force Jira to return all worklogs. The 20 cap is a known issue at Atlassian and awaits fixing. News can be found at the bug ticket:
https://jira.atlassian.com/browse/JRA-34746
There are possibilities to use SQL to query your Jira database for the worklog data:
Directly, which can be considered deprecated because of the risks:
"Zero security ... could potentially slow the Jira system access ... inefficient queries"
Via a third-party plugin
" 'SQL for JIRA', a new plugin for JIRA which supports standard SQL against the JIRA API"
https://answers.atlassian.com/questions/17373/can-i-acess-the-jira-database-to-run-my-own-querys
I can't guarantee that either works for you but it is a starting point until the bug is fixed.
I had the same issue and I could get all the worklogs separately without any maxResult limits using the following link:
../rest/api/2/issue/your_issue_id/worklog/

Jira issue solved per week, irrespective of creation date

How can I create a weekly graph in Jira, that shows me how many issues per solved per week, irrespective when they were created.
Thanks in advance
what version of JIRA are you using (hosted or OnDemand)? Are you using sprints / agile boards / Greenhopper? If you have those, then you should be able to leverage the burndown chart (and many other reports) in the Report tab of an agile board.
for custom details, you can use the issues search feature. and filter by resolution date
resolutiondate >= startOfWeek()

Resources