(For MAC only, for now)
I found this easy way to lunch a ticket in the browser from spotlight.
Compiled script as app can be downloaded here.
- Open Spript Editor app and create a new ApplScript with the following content:
set ticketDialog to display dialog "Ticket Number?" default answer ""
set ticketNumber to text returned of ticketDialog
do shell script "open https://springbig.atlassian.net/browse/DEV-" & ticketNumber
- Save the file and export as Application
- Create this file jira.command with the content:
#!/bin/bash
echo 'Ticket number?'
read ticket
open https://springbig.atlassian.net/browse/DEV-$ticket
exit
- Add launch permissions
chmod u+x jira.command
- Allow terminal to quit after exit command:
Open Terminal.app Preferences > Profiles > (Select a Profile) > Shell. on 'When the shell exits' chosen 'Close the window'
- Done.
Command + space
to open spotlight- type jira.command (usually jira is enough as spotlight will autocomplete)
- press enter
- a terminal will popup asking for the ticket number
- type 1234 and press enter
Browser will open with the link https://springbig.atlassian.net/browse/DEV-1234