Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Issue status color is always "is-light" #99

Open
1 of 5 tasks
ngraham20 opened this issue Nov 9, 2023 · 4 comments
Open
1 of 5 tasks

[Bug] Issue status color is always "is-light" #99

ngraham20 opened this issue Nov 9, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@ngraham20
Copy link

Describe the bug
A clear and concise description of what the bug is.

The Status section of both table and in-line issue renderings does not use any color other than "is-light".

To Reproduce
Steps to reproduce the behavior:

  1. Install jira-issue
  2. Render an issue

Expected behavior
A clear and concise description of what you expected to happen.
Issue statuses should render with different colors using "is-info", "is-warning", "is-success", and "is-danger."

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

image

Plugin version and platform

  • Version: x.x.x
  • Obsidian Windows
  • Obsidian Mac
  • Obsidian Linux
  • Obsidian Android
  • Obsidian iOS
@ngraham20 ngraham20 added the bug Something isn't working label Nov 9, 2023
@ngraham20
Copy link
Author

ngraham20 commented Nov 9, 2023

With only a surface level investigation, the issue.fields.status.statusCategory.colorName selector in renderingCommon.ts:109 does not appear to be set anywhere else in the project. It does appear that a function updateStatusColorCache is designed to do this, as a different field, response.statusCagetory.colorName is set here, however this function is not called anywhere in the project.

@ngraham20
Copy link
Author

It appears that my API response is yielding "default" as the colorName, so the rendering is not mapped to anything.

@ngraham20
Copy link
Author

I would suggest adding functionality to read in the statusCategory.name and parse it if colorName is not set, so that a default of a helpful color is used instead of a plain one.

@HolgerVornholt
Copy link

Hi,
I am not sure if this is the same issue but my jira projects use custom german status like "Offen", "In Arbeit" and "Geschlossen". It would be great if I could define an Array of Status Texts that lead to the "is-success" colour.

I am trying to use the plugin to get an overview of dependencies and next steps. Without the green it will be hard to read:
grafik

Thanks for the plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants