Skip to content

Atlassian API version bump from v2 to v3 #5

Description

@crazycyke

The current spoon uses API v2, which Atlassian has now deprecated in favour of v3.
This causes the spoon to break and no longer show any content.

I made the following changes to the spoon init.lua file, which seem to have fixed the issue.

In the local function updateMenu() function, roughly around line 38:

local jira_url = obj.jira_host .. '/rest/api/3/search/jql?jql=' .. hs.http.encodeForQuery(obj.jql) .. '&fields=id,assignee,summary,status'

And around line 68:

local transitions_url = obj.jira_host .. '/rest/api/3/issue/' .. issue.key .. '/transitions'

Example from jira-issues-my.spoon:
init.lua.txt

There may be a better way, but I thought I would at least share what worked for me with you :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions