obsidian-jira-issue icon indicating copy to clipboard operation
obsidian-jira-issue copied to clipboard

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

Open tescalada opened this issue 2 years ago • 2 comments

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.

tescalada avatar Jan 04 '23 21:01 tescalada

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
```jira-search
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)
```jira-search
query: issueFunction in incompleteInSprint(1111,Iteration2023-01)
```

My issues of the next sprints
```jira-search
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

marc0l92 avatar Jan 11 '23 20:01 marc0l92

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.

tescalada avatar Jan 12 '23 23:01 tescalada