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

Transition sub-menus are not showing #4

Open
crazycyke opened this issue May 28, 2024 · 1 comment
Open

Transition sub-menus are not showing #4

crazycyke opened this issue May 28, 2024 · 1 comment
Assignees

Comments

@crazycyke
Copy link

Issue
When loading the jira-issues spoon and viewing entries, I cannot see the sub-menu with the transitions available.
Clicking on an entry opens the issue in Jira.
Hovering over the entry does nothing.
 

Troubleshooting done

  • I have tried removing and re-creating the spoons
  • I have re-installed Hammerspoon from both their website and using Brew
  • I have checked I have the correct fonts etc. installed [Note: feather font throws an error as it needs to be called using 'icomoon' and not 'feather' in ("jira-issues.spoon/init.lua")]
  • I configured the jql query string to reference an existing filter and provided the filter string within init.lua, and have run it as default without any jql defined
  • I have confirmed that transitions exist with Jira for the tickets I am pulling into Hammerspoon (see below)
     

Additional info
Console logs show the following for each issue loaded:
2024-05-28 13:35:54: 13:35:54 ERROR: LuaSkin: hs.http connectionDelegate:didFinishLoading: /Users/chill/.hammerspoon/Spoons/jira-issues.spoon/init.lua:80: attempt to index a nil value

Line 69 in init.lua seems to reference:
hs.http.asyncGet(transitions_url, {Authorization = auth_header}, function(status, body)
 

Screenshots

  • Screenshot showing Jira ticket that has transitions that don't show as sub-menus in the Spoon
    SCR-20240528-mlin

  • Screenshot showing the transitions available
    SCR-20240528-mthg
     

System

  • macOS Sonoma 14.5
  • Apple M1 Pro
  • Memory 16 GB
  • Chrome: Version 125.0.6422.113 (Official Build) (arm64)
  • Hammerspoon: Version 0.9.100 (6815)
    SCR-20240528-mqhu
@streetturtle
Copy link
Member

Hi! I missed this issue, sorry for the late reply.

The easiest way to check what's wrong with it is to call the transitions endpoint from your browser. While being logged in jira, open a new tab on this page: /rest/api/2/issue//transitions. If you see a json with a list of transition objects, then there is some issue in decoding the json.
Another reason could be that transiotion does not have an image defined. To check if it's the case, comment out line 80 of the init.lua, here: https://github.com/fork-my-spoons/jira-issues.spoon/blob/main/init.lua#L80

Sorry again for the late reply.

Btw, I have a native macOS app with similar functionality: https://menubar-apps.github.io/#jirabar

@streetturtle streetturtle self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants