Script to fetch information from JIRA and send it to xbarapp. The current version takes information from specific servicedesk queue.
The script requires ruby (2.6.8+). You can find installation instructions here.
Follow the instructions in their site.
Go to token creation's page and do it.
In order to do that, you need to create a file inside the plugins folder with the same name of
your script file ending with the vars.json extension, eg,
jira-attendance-support-tickets.1m.rb.vars.json
The content of the file should be like:
{
"JIRA_API_TOKEN": "JIRA_API_TOKEN_HERE",
"JIRA_USER_EMAIL": "EMAIL_USED_IN_JIRA"
}
Substitute the email value for your JIRA email address and the token for your own JIRA token value.
The script is fetching tickets from queue 18 at servicedesk 1. You gotta change that accordingly:
queue = JiraClient.new.get_queue(servicedesk_id: 1, queue_id: 18)
In macos you can do the following:
chmod a+x PATH/jira_script.rb
Change the PATH to the directory path where you did clone the project into.
In macos you can do the following:
ln -s PATH/jira_script.rb XBAR_PATH/xbar/plugins/jira-attendance-support-tickets.1m.rb
Change the PATH to the directory path where you did clone the project to.
Change the XBAR_PATH to the directory path where you did install your xbarapp.
Left-click the xbarapp and hit Refresh all
in the xbar
menu;