marc0l92 / obsidian-jira-issue

This plugin allows you to track the progress of Atlassian Jira issues from your Obsidian notes.
https://marc0l92.github.io/obsidian-jira-issue/
GNU Affero General Public License v3.0
225 stars 35 forks source link

[Feature] include sprints in jira-search query and columns #51

Open tescalada opened 1 year ago

tescalada commented 1 year ago

I don't currently have a good way of filtering out my unstarted tasks that are in the next sprint vs the current sprint.

It would be really nice to be able to filter the jira-search results by sprint. I am thinking similar to the assignee = currentUser() having the ability to specify sprint = activeSprint() would be really useful.

It seems like sprint data is there with $ji.macro.getActiveSprint() but I was unable to get that working from the example in the docs, and I was unsure how I would then use that with the jira-search results I am using in my dailynotes to keep track of my active, next, and done tasks for the current sprint.

This plugin looks great and should make switching to Jira much easier. Thanks.

marc0l92 commented 1 year ago

Hello, you can create those views using the simple jira-search block.

My issue to complete this sprint sorted by priority
```jira-search
query: project=AAA AND sprint in openSprints() AND assignee=currentUser() AND resolution=Unresolved ORDER BY priority

Last 10 completed issues

query: project=AAA AND assignee=currentUser() AND resolution=Done ORDER BY resolutiondate DESC
limit: 10

User story failed the previous sprint (even if i completed them now)(boardId=1111, Sprint=Iteration2023-01)

query: issueFunction in incompleteInSprint(1111,Iteration2023-01)

My issues of the next sprints

query: project=AAA AND sprint in futureSprints() AND assignee=currentUser() AND resolution=Unresolved ORDER BY priority


Let me know if you need help for a specific query
tescalada commented 1 year ago

That's perfect, thanks.

I had searched the docs for something like this but didn't see it. I guess this issue is about updating docs instead then. I can take a look at submitting a PR for it in the next few days probably.