1. 21
  1.  

  2. 10

    I do something similar, but in a more generic way. I have two “search engines” defined in Chrome, one called Jira and the other called JQL.

    Jira is defined as https://company.atlassian.net/secure/QuickSearch.jspa?searchString=%s JQL is defined as https://company.atlassian.net/issues/?jql=%s

    The Jira one means I can do jira<space>project foo which activates Jira’s “smart” search and, if project is a valid Jira project, searches for foo in that project, or otherwise does a more generic text search for project foo; and jira<space>project-1234 also takes you right to ticket PROJECT-1234 as in this blog post.

    For those that use Alfred on macOS you can also create a similar search there, using {query} instead of %s

    1. 4

      Yes, Alfred is what I use and it’s extremely useful for this. My shortcut is jira and putting in a ticket number will go straight to it. I also created a workflow to take the full URL of a Jira ticket from my clipboard and replace it with just the ticket. All this saves a great deal of tedium.

      If you’re on macOS I can’t recommend it enough. https://www.alfredapp.com

      1. 2

        Yes the QuickSearch one is great, and that’s what I have j aliased to in Firefox. You can type in a ticket ID or a search term or whatever.

        One really frustrating thing is that Jira then redirects you to a combination search/ticket view and puts the first result’s ID in the URL bar. This makes it that much harder for people to reverse-engineer the search URL!

        1. 1

          Mine are very similar, I have ji for ‘JIRA issue’ and js for ‘JIRA search’.

        2. 7

          You can do this in Firefox too by adding a bookmark with a keyword. I have a bookmark for something like https://my.jira.instance/browse/%s set with the keyword ‘j’, so I can type ‘j ABC-123’ to get to that ticket.

          1. 3

            I use the go-jira cli client.

            I just type at a terminal jira browse PROJECT-1234 and my browser opens up, happy as you can be.

            1. 1

              I use this too. I patched mine to add support for managing external links. The project seems to be dead or nearly so, though, and I’ve ran into more and more problems that I’m close to giving up on it.

              1. 1

                Any concrete problems? It makes jira tolerable to me, and I only just found it, so I want my eyes to be wide open.

                1. 1

                  The biggest issue is auth periodically fails for no obvious reason and when it does it retries too fast and gets blocked by the server for a while.

            2. 2

              That’s a great tip! I personally just made a terminal alias so I can do jira 1234 and it opens but I am glad to see solutions for people who don’t live in the terminal! I might even add this so I can find one no matter where I am without switching applications.

              1. 1

                Here’s my take on this. I use dmenu for a bunch of repetitive stuff in my workflow, so the moment I needed to start using Jira I scripted this and had it bound to a shortcut in my wm. It defaults to a predefined project, but can open others as well, and keeps a short history of last opened issues.