fork-my-spoons / jira-issues.spoon

Jira issues in your menubar
MIT License
18 stars 2 forks source link

Transition sub-menus are not showing #4

Open crazycyke opened 6 months ago

crazycyke commented 6 months ago

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

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

System

streetturtle commented 1 month ago

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