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
234 stars 36 forks source link

Dark mode✅, Inline jira issue ✅, jira-count ✅ #6

Closed victorhublo closed 2 years ago

victorhublo commented 2 years ago

Hello,

Well done for your work on this. It was a good basis to make my own custom plugin. I don't have the time to provide a PR (my code is awful), but I can give you some ideas for the future of your plugin :

Jira-count

```jira-count
project = REF AND status changed to (Done, "Won't Fix", Archived, "Can't Reproduce", "PM Validated") after -14d

Which leads to this: SCR-20220423-igj

Caching

All queries can be cached, to have a view of a situation at a specific time. SCR-20220423-igz

ahopkins commented 2 years ago

If we are collecting ideas here...

The count idea above is awesome, and the "refresh" link and timestamp would be amazing.

marc0l92 commented 2 years ago

What do you mean by "Auto-link issues"? @ahopkins

marc0l92 commented 2 years ago

@victorhublo in the rendering of jira-count where you thinking to write the query on the side of the number or just the number? image

ahopkins commented 2 years ago

What do you mean by "Auto-link issues"? @ahopkins

I am not sure if my ideal solution is possible in Obsidian. But here it is:

I would like to type ABC-1234 and have it automatically converted to a link to that issue: [ABC-1234](<JIRA>/ABC-1234).

Barring this, it would be nice to have some other way to do this. I mimicked the pattern using the QuickAdd plugin so that I can hit a shortcut and insert a link after typing the issue number.

zoglesby commented 2 years ago

To add on to what @ahopkins is saying about auto-linking, while I really enjoy the tables and "cards" for things like tracking my sprint work, etc. I also like to take notes in my daily note about what I was doing and the "card" style interface can't really be used in a bullet or as a sub-item and looks out of place with how I take daily notes.

CleanShot 2022-05-05 at 09 55 11@2x

marc0l92 commented 2 years ago

Having inline jira-issue was a feature that I planned since the begin. This plugin is mainly based on the features already available in confluence.

I did not implement this feature jet because I'm not really sure what this inline tag should look like. In markdown there is a standard for fences but not for inline items so I need to make sure to not create conflicts with other plugins.

My idea is to find a simple prefix that is unique enough to not create conflicts. Something like:

some text $$AAA-123 other text

is rendered in this way image

But I'm not sure on the prefix to use...

heycalmdown commented 2 years ago

How about to allow the user to add the Jira prefix through the setting dialog? Like ABC- as @ahopkins mentioned, or GitHub did.

Another options is, to recognize the Jira link by the base url which the plugin already has.

image
marc0l92 commented 2 years ago

@heycalmdown thanks for this feedback. I will implement both solutions and add some settings to enable/disable them

marc0l92 commented 2 years ago

@heycalmdown , @zoglesby , @ahopkins

Please update the plugin to 1.12.0 and give me some feedbacks on the new inline issues syntax. You can check the Readme.md to know how to use it.

zoglesby commented 2 years ago

@marc0l92 works great, it would be nice if it worked in live preview mode (I don't use reading mode very often), but I will take what I can get. Thanks!

marc0l92 commented 2 years ago

I also inly use live preview. That will be my next step once I understand how to do it there as well.

If you actually know any plugin that is doing some changes like this in the live preview, please tell me the name of the plugin so I can che how it does that.

marc0l92 commented 2 years ago

starting from version 1.18.0 the inline issues are showing in live preview mode as well. Please let me know if it is working fine.

@zoglesby @heycalmdown , @zoglesby @ahopkins @victorhublo

heycalmdown commented 2 years ago

It works well like a charm! Thanks!