JQL issues added to backlog - jira

Is there a way in JQL to find issues that were added to backlog yesterday? I tried using Sprint changed to EMPTY and Backlog priority changed from empty but JIRA doesn't support historical search on those fields.
Thanks!

JQL indeed does not support history searches on the sprint field so you cannot search for issues that were removed from a sprint since yesterday.
You can however search for "new" issues that were added to the backlog since yesterday:
project = "MyProject" AND created > -1d AND sprint IS EMPTY
Or for issues on your backlog that were updated since yesterday:
project = "MyProject" AND updated > -1d AND sprint IS EMPTY
If that's not close enough to what you need, you could also use an add-on like Script Runner which comes with a number of JQL functions built-in, like removedAfterSprintStart. It also allows you to implement your own JQL functions. That way you could implement exactly the behavior that you desire.

Related

Jira Kanban board does not show cards, although there seem to be issues

From one day to another, changing the issue filter slightly, my Kanban board's board configuration in JIRA went empty. I use the following JQL as a filter within the board configuration:
project = "My amazing project" and fixVersion in unreleasedVersions()
ORDER BY priority DESC
The above filter does not work. What is working, though, is
project = "My amazing project" and fixVersion = "v1337"
ORDER BY priority DESC
Interestingly, the first query works in JIRA's issue explorer and gives me back the 11 results I expect. As you see in the screenshot below, I have no quick filters enabled. Neither do I have any sub-filter added, nor am I hiding any older issues. Where did all the cards go?
I am using Atlassian Jira Project Management Software (v8.2.3#802003-sha1:5986657), and I am not an administrator of that installation, only of the project.
Further reading
community.atlassian.com: Kanban board is empty
There is a dedicated problem page provided by Atlassian:
Symptoms
The issues are not visible in Kanban board, but when you are in board configurations >> columns you can see number of issues.
Cause
As Kanban board deals with version of the issues, the field named Fix Version/s should not be hidden
This is because the default Kanban board sub-filter(Board Configure >> General) has been set to
fixVersion in unreleasedVersions() OR fixVersion is EMPTY
The page also describes a rather complicated workaround. My workaround was much simpler:
Change the JQL query to project = "My amazing project" only.
Create a subfilter fixVersion in unreleasedVersions() ORDER BY priority DESC.
I do not understand why it has to be this way, but it does the job.

JQL Selecting all Epics that have no stories

I'm trying to figure out how to create a select that would bring up all empty epics (those that have no stories in them) so I could easily tell which ones need filling.
Selecting stories that have or do NOT have an epic link is easy. I can not seem to find a way to search the other way around.
This is where I am right now:
issuetype = Epic AND project = projectname AND Issues in Epic is EMPTY
The part after the last AND is what I need the code to do and can not seem to figure out.
This is not support with JQL out of the box, but there are a few add-ons that do provide support for this.
The most common one is the Script Runner add-on which comes with a number of additional JQL functions like hasLinkType, that you can use for your scenario in a query like this:
project = PROJECT and issuetype = Epic and issueFunction not in hasLinkType("Epic-Story Link")

Sprint work item default value

I need to set a default value for the Retrospective tab in TFS 2015.
Factory value is the following (TEXT 1):
What worked?
What didn't work?
What will we do differently?
Using the Powertools, I add a DEFAULT rule. In the rule i specify the following default value for the Retrospective (TEXT 2):
What worked?
Please check out what you wanted to do differently in the last two sprints.
What didn't work?
What will we do differently?
So really it's just adding Please check out what you wanted to do differently in the last two sprints.
Now here comes the problem. I save my work, and if I create a sprint in Visual Studio, TEXT 2 is displayed.
If I create a Sprint in Online TFS (accessed from browser), it will show TEXT 1.
Did anyone have a similar problem in the past?
Thank You in advance!
The Sprint work item, used in TFS 2010 with the MS Scrum 1.0 process template, was removed from the Scrum process template 2.0 of TFS 2012.
However since TFS 2012, you configure the sprint schedule as part of the new Agile Planning feature, making the Sprint work item redundant.
So your options for storing the goals\retrospective:
Use a Task work item (Title, Description fields)
Add custom field in the Product Backlog Item
Use SharePoint integration - store as a document

JQL query to find a linked issue in another project

I am looking for the Jira JQL syntax to find issues that have a linked issue in another project. For example in three projects I can find the list of issues that have been resolved in the last 90 days. I would like to find a list of issues in our QA project for the original issues resolved list.
sqluser was close. You don't to have designate a single issuekey, if you use the scriptrunner addon. I don't think there is a way around having it. Up to a recent version it was free so you can simply download that version. It's a must have plugin imho. Here is your query:
issueFunction in linkedIssuesOf('resolutiondate > 2015-10-01') and project = QA
You can extend the criteria of the search. Here is the documentation.
Try this plugin:
http://www.j-tricks.com/jql-tricks-plugin.html
specifically JQL function
linkedIssuesInProject(project,[linkType])
but the plugin is not free.
You can use linkedIssues function and combine it with project name
Something like this:
issue in linkedIssues(XYZ-000) AND project = 'ABC'
I was able to get to the solution I needed with the following:
AND issueFunction in linkedIssuesOf("project in (ext_proj_1, ext_proj_2, ext_proj_3)") AND issueLinkType in ("depends on", "is blocked by")
I then used this in a dashboard where I showed the filter results and added the "Links" column so that users could see what projects we had external dependencies on.

TFS 2012 scrum bug with parent as backlog item

Maybe I am not understanding the scrum development model correctly, but I am confused why TFS places bugs on a different row than my backlog item even if the backlog item is set as its parent.
I thought that we would make a bug report, and it be placed in the TO DO column. Then as you commit code to that bug, you associate the commits with that particular task ID for the bug. Then once it is done it is moved to DONE. Is that not how scrum works? What is the typical process for fixing a reported bug?
That is the view of the task board. In the most recent Scrum process template (Microsoft Visual Studio Scrum 2.x), the Bug is in the Requirements category. Doing so, the Bug is treated like a Product Backlog Item (it can be stacked ranked, broken down into workable tasks, and fed through the process like any other PBI). If you are on TFS 2012 Update 1, or TFService, you should have a Kanban board tab on the product backlog page which is where you would move your bugs through the states (New/Approved/Committed/Done). In the task board (screenshot above), the Bugs and Product Backlog Items will be shown as rows (where you have Task Here and Bug Here) and the the tasks will exist in the To do, In progress, and Done columns.
When you work against a bug, you work specifically against the tasks, and associate/resolve those tasks as you check in code. Once your 'Definition of Done' has been met, you can then move the Bug work item (on the Kanban board, or manually via the state field) to Done.
We are developing agile tools for TFS since 2008 at Urban Turtle. In the 2012 version we did exactly what you are looking for. Green line represent User Story (PBI) and red box represent bugs.
You can try our Product online if you want.
This is a print screen of the feature you requested. If you need more info just contact me. ddanis#urbanturtle.com

Resources