For now i'm using such query:
project = MyProject AND issueFunction in addedAfterSprintStart("General
Board", "MyProject-20180903")
After each sprint I need to change 2nd parameter, to last sprint, I want to avoid it, i tried with:
project = MyProject AND issueFunction in addedAfterSprintStart("General
Board", previousSprint(General Board))
but it's not working.
Is there possibility to use function as a parameter, if no, how can I get the same result other way?
Are you trying to get the issues added after the start of the current opened sprint ? If yes you should just omit the second parameter of the addedAfterSprintStart function.
issueFunction in addedAfterSprintStart("Scrum Board Name") return all issues added after start of current opened sprint
See documentation : https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_addedaftersprintstart
If you want the issues added to a closed sprint i don't think is is possible with the addedAfterSpintStart function.
But you may find this information on the sprint reports : https://confluence.atlassian.com/jirasoftwarecloud/sprint-report-777002722.html
Related
I'm implementing Automation for Jira for my current project, but have hit a roadblock. Currently the workflow is like this:
Trigger -> Issue transitioned to Resolved
Condition -> Issue type
equals "Test Run"
Condition -> Issue matches issueLinkType (created)
Action -> Send Slack message
I would want to add a condition to the workflow that the action is only done if the condition says that the linked issues that are created are either Bug or Performance. Currently the message prints out all types of linked issues (like Stories, other Test Runs etc) and that is not what I want.
Any ideas?
Better late than never, or for the next person... try this JQL
linkedIssue IN linkedIssues("{{issue.key}}") and issuetype in (Bug, Performance)
I'm looking for a JQL query/filter to return a list of child issues from a list of active parents (EPICs).
For example:
"Epic Link" IN linkedIssuesInQuery("issueType = Epic AND Status = 'In Progress'")
I was hoping the above query would work, but the results are not what I expected. Is there a way in standard JIRA (no plugin) to return a list of all child issues of a Query/Filter set?
I also tried a filter, but the results were the same as above:
"Epic Link" IN linkedIssuesInFilter("1234")
// Where Filter Id 1234 was something like => issueType = Epic AND Status = 'In Progress'
Both examples above return results, however they seem to be incomplete results and I don't understand why some issues not not being returned.
ps. The function childIssuesOf("ABC-123") returns the correct results for a single parent issue, but how do I provide a dynamic list of parents, not just a static hardcoded issue number?
EDIT:
After a lot more experimenting and reading, I found that the JIRA instance I am using has a Plugin called JQL Tricks. This Plugin has a function which, based on its description, is exactly what I need: parent(JqlQuery) ... but it doesn't work!
Here is my test query:
issue in parent("project in (MyProject) and status = \"In Progress\" and issueType = EPIC")
This query returns 0 results! However when I cut out the JqlQuery within parent and run it on its own, I get the complete list of EPIC's I expect to see and when I review the EPIC's they all have child issues. From all the experimenting I have done with this function, I believe there is an issue with the status "In Progress" (and also "Open") as when I try the call with other status types the child issues are return as expected. I have also tried a different approach for filtering for In Progress
issue in parent("project in (MyProject) and status not in (closed, refused, new, open) and issueType = EPIC")
However the result is exactly the same as above, 0 results!
Finally I have also experimented with the function subtask(JqlQuery), also without success.
Can anyone help?
In JQL Tricks, parent and subtask JQL functions work with parent/child (subtask) link type. You might want to search for "issues in Epic" link type, i.e. using the "Epic Link" field.
With JQL Tricks you can try this (be careful about different quotation marks):
issue in issuesWhereEpicIn('project in (MyProject) AND status = "In Progress"')
Source: https://www.j-tricks.com/jql-tricks-plugin.html [1, 2]
Tip: (mainly for other users ended here finding the same answer)
You can also check if ScriptRunner add-on is installed (it's very often installed, too). You can check the presence if issueFunction is available in JQL). With this add-on, you can use this:
issueFunction in issuesInEpics('project in (MyProject) AND status = "In Progress"')
I get by with basic understanding of Jira and JQL for the most part, but I would like to streamline a process.
Everytime I add a new fixversion I also have to add a new swimlane to our sprint board. I was hoping I could eliminate this by using a more advanced JQL query.
Instead of:
fixversion = 3.0.0
Use something like:
fixversion = "Current Sprint" AND is OPEN
The results should be that I never need to add new swimlanes when I open new fixversions, and only show fixversions that are still opened. I should also be able to display multiple versions in a sprint if that condition exists as well.
Thank you for your assistance!
You can use :
sprint in openSprints ()
Only available if you are using JIRA Agile 6.6
Documentation:
https://confluence.atlassian.com/jiracoreserver073/advanced-searching-functions-reference-861257222.html?_ga=2.141919090.1302349630.1507452194-702843776.1505580610#AdvancedSearchingFunctions-openSprints()
Hope it helps!
If you are using ScriptRunner you could use earliestUnreleasedVersionByReleaseDate().
See: https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html
Im trying to search for all the issues assigned to an user, but no results are being returned and i cant figure out why.
My JQL is the following:
project = MYPROJECT and assignee was joaoalves
In the docs it says:
The "WAS" operator is used to find issues that currently have, or previously had, the specified value for the specified field.
(Note: This operator can be used with the Assignee, Fix Version, Priority, Reporter, Resolution and Status fields only.)
I have an issue assigned to the user joaoalves, but when i search with the JQL above no issues are returned.
But if run the following JQL the issue is returned:
project = MYPROJECT and assignee = joaoalves
Am i missing anything?
It works in my instance, and return issues that currently or previously assign to me. Which version of JIRA are you using?
Assignee was will return the issues which were previously assignee to tat user and current tickets which are present on that user.
Try in conjunction with the "DURING" clause and specify a timeframe. Like this -
project = MYPROJECT and assignee was joaoalves DURING ('2017-04-16 23:59', '2017-04-19 23:59')
See: https://confluence.atlassian.com/jiracore/blog/2015/07/search-jira-like-a-boss-with-jql
The was operator is looking for issues where the assignee was joaoalves but is currently not that user.
Currently, I have a quick filter to show me my task that does this:
assignee = currentUser()
This works ok, but doesn't show me tasks that are assigned to someone else, but have subtasks assigned to me. Is it possible to make it show me both tasks assigned to me, and tasks that have subtasks assigned to me?
Create a filter for all of your subtask from the following JQL:
issuetype in subtaskIssueTypes() and assignee = currentUser()
Then, using Craftforge JQL Functions Plugin, use the following JQL to find their parents:
issue in parentIssuesFromFilter("filter name or its id")
The following query will return all parent tasks, which have sub-tasks assigned to the current user. (The parent task need not be assigned to current user)
issueFunction in parentsOf("assignee = currentUser() ")
Note: issueFunction requires the ScriptRunner plugin and it's not free.
In addition to #Kuf's answer, it's sometimes much simpler to write the whole thing in one query especially with Swimlanes or Quick-Filters in Greenhopper, rather than creating and saving custom filter.
For instance, to show Un-finished Issues or Sub-tasks in one quick-filter on Greenhopper:
status!=Closed or issue in parentIssuesFromQuery("issuetype in subtaskIssueTypes() AND status!=Closed ")
Navigate to Issues (in header) > Search for issues, then enter your search criteria.