Hello!
I would like to know how can I use the start date and end date in jql.
Thanks! Mage
Perhaps being able to query issues in open or closed sprints will suffice?
https://confluence.atlassian.com/display/JIRA/Advanced+Searching+Functions#AdvancedSearchingFunctions-openSprints()
https://confluence.atlassian.com/display/JIRA/Advanced+Searching+Functions#AdvancedSearchingFunctions-closedSprints()
Do you mean "sprinT"? I don't think you can fetch it with JQL off-the-shelf, but I think the script runner add-on would let you pull it out as a function.
This answer is helpful, but doesn't directly solve the problem. For instance, I am trying to write a query that would show me all newly created issues since the Sprint began, to help in backlog grooming session. openSprints() does not help.
I want to know how to do this as well. My reasons are that I want to know how many tickets I've completed in another project during my Sprint's start and end dates. Something like:
project="Kanban" AND status was Resolved by currentUser() and resolved >= SprintXYX.startDate and resolved <= SprintXYX.endDate
is there any default add-on already available to use
is there any default add-on already available
and the name of the add-on would be?
Nic was referring to Script Runner, look here;
https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=server&tab=overview
ScriptRunner have inSprint etc ready made functions, but I did not manage to find way to use sprint start and end dates in JQL.
Im trying to do similar as Completed outside of sprint function where sprint ID could be filled in like incomplete in sprint.
Something like this I would like to use also.
Unfortunately I haven't find yet.
Any ideas where to look ?
As a work-around, you can get the Sprint dates in PowerBI if you have that connected.
You can Try "Sprint Report" under Reports. It shows the start and end date of each sprints
Information is available in Jira (eg. in that page) , but I'm looking way to use it in JQL.
Manual Copy-paste from page to JQL would not be an option in case you have many projects and sprints to handle.
Hi Arin,
I was looking to display sprint start date and end date from JIRA to Power BI, can you please let me know how that can be done.
Thank you in advance.
Regards,
Navira Shetty
you can search for 'sprint' in the returned response -
CTRL+F search for sprint - you may get the field which lists down 'sprint details' - ours is a custom_field with some ID, so in jql you can then filter using that field id - or just pull out data from the returned response , accessing dictionary and key as custom field ID JQL search can be like - jiraURL/jira/rest/api/2/search?jql=Sprint='sprint_name'&fields=customfield_100&maxResults=400
CTRL+F search for sprint - you may get the field which lists down 'sprint details' - ours is a custom_field with some ID, so in jql you can then filter using that field id - or just pull out data from the returned response , accessing dictionary and key as custom field ID
JQL search can be like - jiraURL/jira/rest/api/2/search?jql=Sprint='sprint_name'&fields=customfield_100&maxResults=400
+1 for this, does anyone find the way to do this?
I just want to filter all issue has been resolved in currentSprint (issue is create in a Kanban board).
Current Sprint is easy, just use this:
resolution is not EMPTY and sprint in openSprints()
The hard part is picking a certain Sprint. Hopefully this helps.
Did not manage to find.
Which page you mean - where I could find sprint details custom_field ID ?
As far as I know, there is unfortunately no term for this in pure JQL.
My personal goal is to monitor if any tickets have been created and moved into an active Sprint without my knowledge (alarm!). I currently work around the missing JQL term by using startofWeek(). Since all our Sprints start on (the same) Monday I use this query:
sprint in openSprints() AND createdDate > startOfWeek() ORDER BY createdDate DESC
By this I get all the tickets which have been created since start of Sprint, but only for week 1. In week two I only get the tickets for week 2 and lose all from week 1 (which is OK for me since I try to react instantly). I put the results of the query on a personal Jira dashboard and check them multiple times a day.
I hope this helps anyone who has a similar usecase.
Best,
Claus
I would also like a JQL to return this data.
could use this condition too:
createdDate > startOfWeek(-1)
This workaround didn't help me because I don't just need tickets created and moved into the sprint, but even existing tickets moved into the sprint. Like you, I want those highlighted on a dashboard. I ended up having to use the Jira API to do it. From Python, I made an API call for all issues in that sprint of the right type, and once in Python, I could access the issue changelog to see when it was moved into the sprint. If that date was after the sprint start date, bingo!
Later I added code to put the label "ScopeAddition" on the issue after it's identified as being added after the start of the sprint. Then my dashboard just looks for that label.
I'm looking for the same thing.
If a sprint ends on DATE1, I would like a list of tickets in the sprint that are not a specific status in the workflow by DATE1 - X Days
It looks like you're new here. Sign in or register to get started.