4 ms·
I used to hate Jira with all the fervor and more. And then one day I discovered go-jira. Jira command line client written in Golang (hence the name). I wrote a
by iLemming 4y ago
I used to hate Jira with all the fervor and more. And then one day I discovered go-jira. Jira command line client written in Golang (hence the name). I wrote a few tiny emacs-lisp wrappers: to read the current backlog; to find a ticket; to list all the tickets assigned to me, etc. And that was all great. I realized - I hated Jira's UI, but its API is quite all right.
At some point, our infrastructure engineers changed something that made it difficult to login to Jira without the web interface (I don't remember what that was exactly - SSO or something...), and I wrote a Puppeteer script that would login to Jira [in a headless browser] and grab the token and use it to authenticate with go-jira.
I thought about cleaning up my elisp experimentation and making a proper Emacs package. Sadly, a few month later COVID hit the US and a bunch of us got laid off. At my new job, we don't use Jira, and I never made the package. And I don't miss Jira. And I don't hate it anymore (I think). But yeah, fuck Jira all the same.
- orzig 4y agoA true hacker! Though not sure what to think about the security of that headless browser setup
- iLemming 4y agoI made sure that the credentials are stored in GPG encrypted file and could only be decrypted on my machine. github.com/agzam/jira-okta-puppet/blob/master/src/jira_auth/auth.cljs Basically, it was no different if I'd have to login manually, then open browser's dev-tools, and copy&paste the token. Arguably, my automated approach made it slightly more secure, since there's no clipboard involved. It was stupid, I should've figured out the proper way of authenticating, but something was missing, I either needed to ask admin to give me OAuth access, or some other bullcrap. Well, you know how the saying goes, right? "It ain't stupid if it works".
- arminiusreturns 4y agoOrg-jira is in melpa and works fine with the new Atlassian token format. So much better and there are a few riders you can add for extra features.
- iLemming 4y agoYes, I am aware of Org-jira, but at the time, I chose to make my own wrapper around go-jira. Unfortunately, I don't remember anymore why exactly I selected that path instead of extending Org-jira package. Perhaps that's a good argument for "every programmer should have a blog". Maybe if I had one, I'd write about the reasons. I have no doubts that if I ever get to work with Jira again, I am definitely doing it in Emacs (or via some other way that works for me). I am a software developer, not a power user, not a weak user, not an A/B testing subject. If a software vendor forces me to use their product inefficiently because "customers don't know what they want", I am either hacking my way around it or deleting that crap. But I must admit that sticking to this principle is getting harder every day. There's way too much crap now.
- CRConrad 4y ago> go-jira. Jira command line client written in Golang (hence the name). I think I can see one more reason for the name.
- iLemming 4y agoAh, yes of course. I loooove the band, btw. I once went to their concert. L'Enfant Sauvage is one of my favorite songs.
- CRConrad 4y agoHuh -- it's the name of a band, too? Never heard of. All I knew was, it's the original Japanese name of https://en.wikipedia.org/wiki/Godzilla#Name https://en.wikipedia.org/wiki/Godzilla#Name