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
242 stars 39 forks source link

[Bug] compound `AND` statements do not appear to be supported in `query/serch` blocks #146

Closed kquinsland closed 17 hours ago

kquinsland commented 17 hours ago

Describe the bug

I am trying to run a JQL query that I copied from the jira page / built using their UI but the query fails with an error:

Error: Invalid key: AND STATUS NOT IN (Done, Closed, "For Review")

To Reproduce

The query in question:

query: assignee IN (myUUIDValueGoesHere)
AND STATUS NOT IN (Done, Closed, "For Review")
AND type != someInternalWordHere
ORDER by priority DESC

If I omit that and run this query:

query: assignee IN (myUUIDValueGoesHere)
AND type != someInternalWordHere
ORDER by priority DESC

It's a similar error:

Error: Invalid key: AND type != someInternalWordHere

... etc.

Expected behavior

Ideally I'd see the exact same set of issues that I see when browsing jira/confluence.

Screenshots If applicable, add screenshots to help explain your problem.

Plugin version and platform

kquinsland commented 17 hours ago

wow. I am not a smart person, sometimes.

After putting the entire query on one line:

query: assignee IN (myUUIDValueGoesHere) AND STATUS NOT IN (Done, Closed, "For Review") AND type != someInternalWordHere ORDER by priority DESC

Things work as expected.

sigh