JIRA: How to get resolved vs closed? using JQL? - jira

Is there a way in JIRA via the filters or using JQL Query to get resolved vs closed over a time frame?

I think you can use dashboard gadget for this. have tested "Issue Statistics" gadget and works fine. you can create a filter that you need with a time frame then configure the gadget with the status and created filter.image attached.

Dataplane Reporting Services handles this quite well.

Related

JQL to get blocked Issues

Is there a native JQL (not a plugin) that returns tickets that have linked issues listed as "is blocked by" (so I can see all my blocked tickets).
All I have found is linkedIssues() but that can require a specific issue ID to search for which is entirely unhelpful.
I am using Jira Cloud 7.4.
In the core JIRA JQL functionality the closest thing you have, as you've already found out, is linkedIssues() that requires a parent Issue reference.
What you need is Adaptavist ScriptRunner, they have a function called hasLinks(). There are also a handful of other add-ons that offer this functionality but like ScriptRunner, they all cost money.
Related JIRA community question
JIRA Cloud feature request
The below query is also helpful (add it in the filter setup):
project = "Project ID" AND issuetype in (story, Spike) AND Sprint = "Sprint ID" AND linkedIssue in issueHistory()
According to Esther Strom's answer on this Atlassian site, there's a new query type:
Atlassian has very recently introduced a new JQL function called issueLinkType, which can be used in filters, but also in boards.
It's not perfect; if you're already using card colors for something else, you won't be able to use this as well. It also behaves inconsistently when a ticket has links of multiple types. But if you're looking for an easy way to get a view into what might be blocked, and what might have blockers, it works pretty well.
In KQL you can specified the type of link.
For what you want to do here what you can use
issue in linkedIssues([Issue#],"is blocked by")

How to create a filter to show issues without worklog in JIRA

I am using JIRA for tracking issues and I want to show Issues without worklogs using JQL.
Any answers is much accepted. Thanks!
Try this jql query:
Timespent is empty

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/

TFS custom bug entry page for non technical users?

To help my company better adopt using TFS i'd like to see if a custom web page could be made so the end user has no idea they're entering a bug into TFS. They find the TFS2012 web based GUI confusing. They are business users and able to write out a problem in a web app, the reproduction steps and expected result but they always forget to set certain fields which makes their entries not show up in my query.
I figured creating a custom web page that inserts the bug into TFS would help. Anyone know if this is possible?
You need to develop a web page which uses TFS API to create a bug. Please see below link which has sample code to create bugs using API.
http://social.technet.microsoft.com/wiki/contents/articles/3280.tfs-2010-api-create-workitems-bugs.aspx

JiraRestClient set assignee

My shop is currently running Jira 5X, and I am attempting to use the Jira Rest Client to retrieve / progress issues.
I need to set values such as Assignee. Can anyone provide a good example on how to do this?
IssueInput issueInput = IssueInput.createWithFields(new FieldInput(IssueFieldId.ASSIGNEE_FIELD, ComplexIssueInputFieldValue.with("name",
<username>)));
jiraRestClient.getIssueClient().updateIssue(<jiraKey>, issueInput).claim();
Looking through the JavaDoc for the Java Jira Rest Client, it looks like it only supports update of a very limited set of issue attributes, and updatng the assignee is not supported - see the methods for the IssueRestClient interface.
You'd be best off contacting the project maintainers - the Java client is only in Alpha so they are probably adding new functionality to it regularly.

Resources