DEV Community

Matteo Mazzarolo
Matteo Mazzarolo

Posted on β€’ Originally published at mmazzarolo.com

2 1

Searching Jira tickets with Alfred

I can't stand Jira slowness.

To me, the worst part of it is using Jira cloud's sluggish UI when I'm looking for a specific ticket.

That's why yesterday I created an Alfred workflow to search for Jira tickets.

Multiple issues result
Single issue result

The workflow is triggered by the jira keyword, followed by the search query.

You can download it here.

Under the hood the workflow uses the /rest/api/3/issue/picker endpoint to return a list of issues matching the Alfred query.

It's smart enough to return a list of issues if your query is a word, or a specific issue if your query is a ticket number.

The workflow setup still has a huge margin for improvement: I haven't built an authentication flow, so it requires some manual setup (that I abstracted into two workflow environment variables).

A domain variable

Part of the Jira URL.

E.g. helloworld, for https://helloworld.atlassian.net.

A header variable

HTTP header used in the API requests.

You should add here your authentication token (JWT or cookie).

Personally, using the cookie session token is enough for me for now.

E.g.: cookie:cloud.session.token=eyJraWQiOiJj....

I'm using the workflow on macOS.

It also need jq to be installed.

You can find the workflow source code here.

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (1)

Collapse
 
javaguirre profile image
Javier Aguirre β€’

Thank you for releasing it! I’ll try it tomorrow πŸ˜€

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more